I'm learning Python, and am going through a course on Codeacademy, but need a particular script as soon as possible.
Essentially, I'm looking for a tool that I can deploy on both Mac and PC that can do the following:
- Read a source directory
- Receive a list of keywords from the user
- Search for those keywords in the file names
- If a keyword is found in a file name, create a folder with the keyword as its title and move all files with the keyword into the destination folders.
This tool is to be used with Cinema4D, a common 3D graphics package. By default, it renders all of its frames to one directory, but it is often easier to work with the various outputs when they're placed into their own folders.
Take a look at this .zip file. It contains a few .tif files that can serve as a test bed. Ideally, this script could output separate folders called "RGBA" "Object_01" etc.
With your help, I'd like to make this tool both for my own use as well as the entire Cinema4D community (I will give you credit). I have already tried toying with this script, but cannot get the files to be moved. I can only get the folders created, albeit clumsily.