Advertisement
fant0men

File manager (copy operation) basics

Nov 23rd, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. Just learned that my file manager (Thunar) pastes files in the order they were sorted the moment you marked and copied them, no matter if you change the sort order in the destination directory (after you've marked files for copying). Also learned that when Thunar sees that there's no more disk space in the destination directory, it doesn't always skip files but sometimes pastes the last file partly. Thunar copies as many files, and as much of them as it can fit before the space completely runs out.
  2.  
  3. This is probably basic computing but still nice to confirm it. I guess most file managers and shell commands work like this.
  4.  
  5. When running two parallel copy operations to the same disk, the priority seems to be random. Sometimes the first copy gets the larger last file, and sometimes the second copy gets the larger last file. Sometimes one of them skips a file completely.
  6.  
  7. I guess it checks inbetween every file, during the copy operation, whether or not there's enough free space. If there isn't, Thunar won't bother trying to copy the next file. If the space runs out before Thunar has a chance to check free space the last file gets partly written.
  8.  
  9.  
  10. # Makes 90 files named test#, the number corresponds to the size of the file in MB.
  11. for n in {0..90}; do dd if=/dev/zero of=test$n bs=1M count=$n; done
  12.  
  13. # Run a loop that lists the content of destination dir while Thunar is copying the files.
  14. for n in {0..900}; do sleep 0.1; echo "***"; ls; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement