this post was submitted on 25 Apr 2024
449 points (95.2% liked)

Programmer Humor

31251 readers
963 users here now

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

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 2 months ago* (last edited 2 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 2 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 2 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 2 months ago

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