[Tutor] Move all files to top-level directory
dotancohen at gmail.com
Mon Apr 12 18:13:59 CEST 2010
> "Lovely"??? What on earth does it do? It's worse than Perl code!!!
> *half a wink*
Like a good wife, it does what I need even if it is not pretty on the
eyes. _That_ is lovely!
(I can get away with that, I'm married to a redhead.)
> See the shell utilities module:
> import shutil
It overwrites files. I am playing with os.rename instead as the two
directories will always be on the same file system.
One thing that I am stuck with is os.walk for getting all the
subfolders' files. Now that at least I have discovered the _names_ of
the functions that I need I can google my out of this! I will write
back when I have a working solution, for the sake of the archives.
More information about the Tutor