Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Flattening a directory tree in a filesystemby NetWallah (Canon) |
on Jan 28, 2014 at 06:17 UTC ( [id://1072320]=note: print w/replies, xml ) | Need Help?? |
Depending on the volatility of your file system (files being added/deleted/moved) - you may need to prevent changes while you are scanning and moving files. I'd suggest taking ownership of everything , and/or making it all read-only prior to reading -possibly even dismounting the file system (after killing processes that have files open on it), and re-mounting it such that only you have modify access).
If your eyes hurt after you drink coffee, you have to take the spoon out of the cup.
In Section
Seekers of Perl Wisdom
|
|