Skip to content

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.

License

Notifications You must be signed in to change notification settings

LLPPR/Flat_Directory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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:

    git clone https://github.com/LLPPR/flatten-directory.git
    cd flatten-directory
  2. Run the script:

    python flatten_directory.py <directory> <levels>
  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.

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages