xhico / AllFiles2Folder

Move all files from subfolders to main folder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File Organizer

File Organizer is a simple Python script that organizes files in a specified main folder and its subfolders. It moves all files to the main folder and deletes the subfolders.

Table of Contents

Introduction

Have you ever wanted to organize a cluttered folder by moving all files to one location? File Organizer is here to help! This Python script takes a main folder as input, finds all files in the main folder and its subfolders, and moves them to the main folder. It also deletes the now-empty subfolders, leaving you with a neatly organized main folder.

Features

  • Easy to Use: Simply provide the path to the main folder, and the script takes care of the rest.
  • Organize Files: Move all files from subfolders to the main folder.
  • Cleanup: Delete empty subfolders after organizing files.

Installation

  1. Clone the repository:

    git clone https://github.com/xhico/AllFiles2Folder.git
  2. Change into the project directory:

    cd AllFiles2Folder
  3. Run the script:

    python3 AllFiles2Folder.py

Usage

  1. Run the script and provide the path to the main folder when prompted.
  2. Watch as the script organizes files and cleans up subfolders.

Contributing

If you'd like to contribute to this project, feel free to fork the repository and submit a pull request. For major changes, please open an issue first to discuss the proposed changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Move all files from subfolders to main folder

License:Apache License 2.0


Languages

Language:Python 100.0%