Skip to main content

Automatically sort files by type in your downloads folder

Project description

smart-files

Ashley Casimir, Sean Hawkins, Ben Hill, Karlo Mangubat

Instructions

Before We Start

This module utilizes crontab.

For Mac ver. 10.15.6 or greater:

  1. In order for this module to work properly, we need to grant full-disk access for cron upon installation

  2. Open Finder and on the top-left corner of the screen, click "Go" and select “Go to folder"

  3. Insert this to location: /usr/sbin/cron

  4. Select "Go" and locate cron

  5. Go to System Preferences and then to Security and Privacy

  6. Navigate to Full Disk Access and click the lock at the bottom left to unlock

  7. Drag cron from finder to the list of apps in Full Disk Access. Ensure cron is checked prior to closing the window.

Quick Start

  1. On your Terminal, navigate to the smart-files repo
  2. Run poetry install
  3. Run poetry run smart-files to display options

Add Scheduled Sorting Job

  1. Run poetry run smart-files cron to display job frequency options. The result is displayed below:
Options:
-m, --minutes  Will create a cron job for Smart-files to run every minute
-h, --hour     Will create a cron job for Smart-files to run every hour
-d, --day      Will create a cron job for Smart-files to run once every day
-o, --month    Will create a cron job for Smart-files to run once a month
--help         Show this message and exit.
  1. Add the desired command at the end of poetry run smart-files cron
  2. For example, the command for running smart-files every minute would be poetry run smart-files cron -m
  3. Verify that the crontab job exists by running the command crontab -l

Note: Running a new smart-files job will overwrite the old smart-files job.

Sort Files

To sort files on an ad hoc basis:

  1. Run poetry run smart-files run
  2. Check Downloads folder and verify that the files are sorted to their respective folders.

Display Unsorted Files

To display unsorted files:

  1. Run poetry run smart-files show-files
  2. The files displayed are coming from the Downloads folder, excluding the folders smart-files creates

Preparations

  1. Summary of idea:
  • An app that takes all downloaded files and automatically puts them in the proper folder based on the file type. For example, an image (.jpg or .png) would automatically go into the images folder from downloads.
  1. Problem or pain point:
  • Are you tired of having to organize your downloads manually? Do you just not have time for it? Our app will do this automatically so that the only thing you need to do is download. Our app will automatically filter it into the correct directory.
  1. Minimum Viable Product (MVP) definition:
  • We will be able to easily prove that common file types for images, videos, standard docs, and software downloads will automatically transfer from the downloads folder to the correct directory. Our app should be able to do this in a very short amount of time to display seamless functionality. In addition, the app should be able to work on all our individual machines. This app will be added as a pip module. This will involve at least:
    • Creating a setup file to help new users download and use as intended.
    • Creating various forms of documentation.
    • Creating a license.
    • Creating a source distribution (meta-data) to ensure program works on everyone’s computer. -Testing and publishing package on PyPl.

Domain model

  • User will have the option to pip install

domain

Wire frame

download software document image other

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smart-files-0.1.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smart_files-0.1.5-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file smart-files-0.1.5.tar.gz.

File metadata

  • Download URL: smart-files-0.1.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.9.1 Darwin/20.3.0

File hashes

Hashes for smart-files-0.1.5.tar.gz
Algorithm Hash digest
SHA256 3b5bfb26374d9c232625e5447f0127d1c8eeaea298ea8e60d2829d2e0629bc92
MD5 e01a7934f8f60d72c77cc18b32620867
BLAKE2b-256 860cca7dd6d496902b95dd4c3b4fb62ee3eb727a440d5d13f82c1c9358d87a5f

See more details on using hashes here.

File details

Details for the file smart_files-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: smart_files-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.9.1 Darwin/20.3.0

File hashes

Hashes for smart_files-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 631f7c625d8bb30940f67e2f4d5451d5d2d41b2d528ae40d5c69f83a08646ce7
MD5 3cfe757d65a9e4f44d8c19c3378b8d87
BLAKE2b-256 1809601f05c8bd15d82b82fe6a09b07b04c8fc18f0264bcb563890bf5aa24a47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page