Giter Site home page Giter Site logo

file-sorter's Introduction

File Sorter

FileSorter is a simple Python script that helps you organize your files by moving them into separate folders based on their file formats. The script reads through the files in a given origin folder, extracts the file extensions, and moves each file into a folder with the same name as the file extension.

For example, all .pdf files will be moved into a folder called "pdf," all .docx files will be moved into a folder called "docx," and so on. If a folder for a particular file extension does not exist, the script will create it before moving the file.

To use the script, you will need to have Python 3 installed on your system. You can then run the script from the command line, specifying the path to the origin folder and the destination folder where you want the sorted files to be placed.

For example:

python3 FileSorter.py /path/to/origin/folder /path/to/destination/folder

The script will then process all the files in the origin folder, creating the necessary folders in the destination folder and moving the files accordingly.

Note that the script will not create subfolders or otherwise sort the files beyond separating them by file extension. It is simply a tool for quickly organizing your files by type.

Tested on Ubuntu 20.04. 2 LTS

Suggestions and comments welcome ~ theaamir.com

file-sorter's People

Contributors

aamirbinabd 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.