The flatten_directory.py
script flattens a given directory up to a specified level, making it easier to manage files by reducing nested folders. It also provides an option to undo the changes when if needed.
-
Clone the repository:
git clone https://github.com/LLPPR/flatten-directory.git cd flatten-directory
-
Run the script:
python flatten_directory.py <directory> <levels>
-
Follow the prompts to provide the path to your root directory and the number of directory levels to flatten to. The script will ask if you want to undo the changes after execution.
- Python 3.x
This project is licensed under the Unlicense.