Skip to content

shihabalratul/download_sorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Download Sorter

Description

Automate sorting of the downloaded files according to their type.

Features

  • Stores image, document, video and audio in separate files
  • Creates new directory if the directory is not present
  • Assigns unique name if file with same name is already in the directory
  • Stores other type of file in others directory
  • How to use

    This instruction is only for linux operating system.

    If you are a windows of mac user this instruction will not work properly. You can run the script just like a normal python script but this instruction doesn't contain any ways to run the script at startup in windows or mac.

    Step 1.

    Clone this repository using this command:

    git clone https://github.com/shihabalratul/download_sorter.git

    Step 2.

    Open the file and install the dependencies:

    cd download_sorter
    pip3 install -r requirements.txt

    Step 3.

    Open download_sorter.py file and set the download directory path to the source variable like this:

    source='/home/user/Downloads'
    and save.

    Step 4.

    Run the script at startup:

    Open terminal and run:

    crontab -e

    Add this line at the bottom with the directory of this file:

    @reboot /usr/bin/python3 [file_directory]/download_sorter.py
    

    Here replace the [file_directory] with the full directory the script.

    Step 5.

    Enjoy Your Downloading

    Download or copy anything in the download folder and see the magic.

    About

    Python downloaded files sorter

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages