in reply to file i/o beyond my knowledge
None of this is actualy complicated. It's all a matter of taking a bunch of simple things and putting them together.
"Prompt the user for a directory": print, <>.
"Read the files from that directory": glob('*'), or opendir(), readdir(), ...
"Create a sub-directory": mkdir
"copy all the files into that sub directory": `cp`, or open, etc, etc
|
|---|