https://github.com/llppr/flat_directory
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 if needed.
https://github.com/llppr/flat_directory
Last synced: 11 months ago
JSON representation
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 if needed.
- Host: GitHub
- URL: https://github.com/llppr/flat_directory
- Owner: LLPPR
- License: unlicense
- Created: 2025-03-01T02:38:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-01T17:41:41.000Z (about 1 year ago)
- Last Synced: 2025-03-01T18:33:21.597Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Directory♭
### Flat Directory Script
## Description
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.
## Usage
1. Clone the repository:
```sh
git clone https://github.com/LLPPR/flatten-directory.git
cd flatten-directory
```
2. Run the script:
```sh
python flatten_directory.py
```
3. 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.
## Requirements
- Python 3.x
## License
This project is licensed under the Unlicense.