Skip to content

A simple file sorter using python, pushing the specified file to its directory once the script has been run

Notifications You must be signed in to change notification settings

RafiS5/Python-file-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This file automater is a python script that monitors the downloads folder for file movements. Depending on the file endings contained within the JSON file, files will be moved to the allocated folder. This is particularly useful for organizing files in real-time, such as keeping track of documents for a specific course or project

Features

  • The watchdog library observes the Downloads folder for specific extensions
  • The "on_moved" function automatically moves matching files to a predefined folder
  • All file system event handling is dealt with the watchdog library

Usage

  1. Open the script file_automater.py in a text editor
  2. Modify the following variables if needed
    • 'destination_folder': The folder where files will be moved
    • 'path': the folder being monitored
  3. Run the script:
    • python file_automater.py
  4. The script will continue running, monitoring the folder in real-time for any file movements. If a file with a matching extension is moved into the folder, the script will automatically move it to the specified destination folder

Requirements

  • Python 3.x
  • Watchdog library(pip install watchdog)

About

A simple file sorter using python, pushing the specified file to its directory once the script has been run

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages