Giter VIP home page Giter VIP logo

extract_and_delete_folders's Introduction

Extract and Delete Nested Folders

This script automates the extraction of files from nested folders and deletion of empty folders. It can be useful for organizing and flattening a directory structure that contains nested folders with files.

Instructions:

Follow these steps to use the script:

1. Prerequisites:

  • Ensure that you have Python installed on your machine.
  • Install the required modules by running the following command in your command prompt or terminal:

pip install shutil

2. Clone the repository:

  • Clone this repository to your local machine using the command:

git clone https://github.com/RanaShankani/extract_and_delete_folders.git โ†—

3. Navigate to the repository:

  • Open a terminal or command prompt and navigate to the cloned repository directory:

cd extract_and_delete_folders

4. Open the script:

  • Open the script file, extract_and_delete_folders.py, in a text editor or integrated development environment (IDE) of your choice.

5. Specify the root folder:

  • In the script, locate the line that specifies the root_folder variable:

root_folder = "your_root_folder"

  • Replace the value of root_folder with the path to the root folder containing the nested folders you want to process. Make sure to use the appropriate path format for your operating system.

6. Save the script:

Save the changes you made to the script file.

7. Run the script:

  • Open a terminal or command prompt and navigate to the repository directory.
  • Execute the script by running the following command:

python main.py

8. Check the results:

  • After running the script, check the specified root_folder to see the extracted files and the deleted empty folders.

License

extract_and_delete_folders is licensed under the MIT License. See the LICENSE file for details.

Contributing

If you'd like to contribute to Extract and Delete Nested Folders, you can fork the repository and create a pull request with your changes. Please make sure to follow the contributing guidelines and adhere to the code of conduct.

Contact

If you have any questions or feedback, you can contact the project maintainer at [email protected]

extract_and_delete_folders's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.