GithubHelp home page GithubHelp logo

file-organiser's Introduction

File Organizer - Automatically Sort Files by Extension

This Python script helps you organize your files by sorting them into specific directories based on their file extensions. It categorizes files into documents, videos, music, pictures, executables, and others.

Usage

  1. Clone or download this repository to your local machine.
  2. Place the main.py script in the directory containing the files you want to organize.
  3. Run the script main.py.
  4. The script will create directories (if they don't exist) named documents, videos, music, pictures, executables, and other.
  5. Files will be moved to their corresponding directories based on their extensions.

Supported Extensions

  • Documents: doc, docx, txt, pdf, rtf, odt, csv, xlsx, xls, pptx, ppt, odp, html
  • Videos: mp4, avi, mkv, mov, wmv, flv, webm, m4v, mpeg, mpg, 3gp, 3g2
  • Music: mp3, wav, ogg, flac, aac, wma, m4a, alac, aiff, mid, midi
  • Pictures: jpg, jpeg, png, gif, bmp, tiff, webp, svg, ico, jfif, heif, raw
  • Executables: exe, dmg, app, apk, msi, bat, sh
  • Others: Any file with an extension not listed above

Note

  • Make sure you have Python installed on your system.
  • Before running the script, review and edit the GetNames function if you want to target specific directories other than the current working directory.

Fee free to make any changes

file-organiser's People

Contributors

0nidev avatar

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.