Code Monkey home page Code Monkey logo

downloads-organizer's Introduction

Downloads-Organizer

Organizes your download folder based on their type and extensions.

If there is a file with unspecified extension, Downloads-Organizer will automatically create a new sub folder for the extension under Others. All future files with same extension will be saved under the same folder.

  • Documents
  • Text Files
  • Pictures
  • Music
  • Videos
  • Compressed
  • Programs
  • Others
    • Other extension folders
    • files without extensions
  • Folders
    • All folders

Usage

Set the environment variable SORT_FOLDER_DESTINATION to download destination folder and SORT_FOLDER_SLEEP_MINUTES=720 to set sleep minutes to check download folder again in your operating system and run the executable file from releases or compile with go build main.go

Instructions to run the executables from releases

  • Windows

    • Make sure you have set environment variables as shown above in USAGE
    • Open file expolorer and navigate to %appdata%\Microsoft\Windows\Start Menu\Programs\Startup
    • paste the downloaded file in this folder
    • now Downloads-Organizer will start automatically on every boot
  • Linux

    • Type sudo nano /lib/systemd/system/downloads-organizer.service
    • Paste following content in the file. Replace <path-to-your-downloaded-file>
      [Unit]
      Description=Sorts the downloads folder
      
      [Service]
      ExecStart=<path-to-your-downloaded-file>
      
      [Install]
      WantedBy=multi-user.target
      
    • Type sudo systemctl edit downloads-organizer.service
    • Paste following content in the file. Replace <path-to-your-download-folder>
      [Service]
       Environment="SORT_FOLDER_DESTINATION=<path-to-your-download-folder>"
       Environment="SORT_FOLDER_SLEEP_MINUTES=720"
      
    • Run sudo systemctl enable downloads-organizer.service
    • Then sudo systemctl start downloads-organizer.service
    • To verify if the downloads organizer is runnung
      • Run sudo systemctl status downloads-organizer.service
      • It will show Active as seen below image

If your finding difficulty in setting up feel free to create an issue


downloads-organizer's People

Contributors

rabilrbl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

slinso

downloads-organizer's Issues

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.