this post was submitted on 25 Apr 2024
438 points (95.1% liked)

Programmer Humor

32567 readers
381 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 7 months ago* (last edited 7 months ago) (2 children)

That's actually not true. When you cut/paste a file on your computer (for most computers), it's much faster than copying the file. Deleting the file is also not instant, so copy and delete should be the slowest of the three operations.

When you cut and paste a file, you're just renaming the file or updating the file database. It's different how that works depending on your file system, but it typically never involves rewriting much of the data of the file.

Edit: Fixed typo.

[–] [email protected] 3 points 7 months ago

Only if you copy and paste to the same disk. When copy pasting to a different disk, as any consciousness transfer would entail, it is very much actually copied and actually removed (from the index).

[–] [email protected] 1 points 7 months ago (1 children)

when you copy/paste a file on your computer it’s much faster than copying the file

I think you meant ‘when you cut/paste a file’?

[–] [email protected] 1 points 7 months ago

Oh yeah I did mean cut/paste, my bad.