in reply to Flattening a directory tree in a filesystem

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.
              -Norm Crosby

  • Comment on Re: Flattening a directory tree in a filesystem