Please be advised that there seems to be a bug when a sub-subdirectory within a subdirectory has files but the main dir only has the subdir. On my system it copies all the files to a single filename (no extension) in the root, and then deletes them. What you end up with is a file named after the subdir by itself in that dir, with the contents being whatever the last file copied was.
I know that's complicated -- here's a better way to put it.
Example:Dir A
File A1
File A2
Dir B
< no files here >
Dir C
File C1
File C2
File C3
All the "Dir C" files get copied to dir (folder) "A" with the name "Dir B", and then they're deleted from Dir C. The "Dir B" file in "A" then only consists of one of the files that were in "C". In my testing, it happened to be the last one alphabetically, but that may vary.
Result:Dir A
File A1
File A2
File (named "Dir C", no extension)
Dir B
< no files here >
Dir C
< no files here >
I've been in touch with jgpaiva, and he asked me to post here. So far, he can't reproduce the sequence of events.
Is anybody else using this script/program? Please reply. If not, I won't worry about keeping current info here. All this formatting's a pain.