-
Notifications
You must be signed in to change notification settings - Fork 0
Python script + config file which allows you use a text input file to rearrange a directory. It takes a specially designed txt file (see example) and then copies all old directories to the new paths. Offers silent/verbose switch, real time logging to a text file.
bgourarie/DirRestructure
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
use TestCSV2.txt as an example to build a csv file. It should have the following structure: Each directory will be relative to a rootDirectory in the config file: oldDirectory*,newDirectoryName*, newDirectoryRoot*, newDirSub(Optional), newDirSub2 (optional) *the OldDirectory should be a subdir of the oldRootDirectory from config file *the first three values are required, the subdirectories are optional (blanks will be ignored) each directory should have its own line (as the CSV format) you can use the config file to specify a test run, which is very useful to make sure you didn't mess anything up before you do a massive operation! Any errors will be recorded to the log (can be disabled in conf). Since the program uses python.os.copytree to perform the operation, any folders which already exist in the destination will be skipped- so it is enough to simply fix the faulty directory and run the script again without changing the csv file. Enjoy
About
Python script + config file which allows you use a text input file to rearrange a directory. It takes a specially designed txt file (see example) and then copies all old directories to the new paths. Offers silent/verbose switch, real time logging to a text file.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published