Code Monkey home page Code Monkey logo

file-manager-automatization's Introduction

Description

This program enables continuous monitoring of one or more folders and manages the files within them, specifically sorting added files in the observed folder(s) into various subfolders.

Important

Required Libraries for Execution:

To run the program, you need to install the following Python libraries:

  • dotenv: Install with pip3 install python-dotenv link
  • watchdog: Install with pip3 install watchdog link

Path of Files to Manage:

To execute the program, create a .env file and initialize the variables as follows:

  • PATH_TO_SCAN: Path to be scanned
  • PATH_IMAGE: Path to the image folder
  • PATH_VIDEO: Path to the video folder
  • PATH_DOCUMENTS: Path to the documents folder
  • PATH_COMPRESSED: Path to the compressed files folder
  • PATH_EXECUTABLES: Path to the executables folder
  • PATH_NOT_RECOGNIZED: Path to the unrecognized files folder

If you prefer not to write it manually, you can download a preconfigured .env file from this link.

Examples

  • PATH_TO_SCAN = "/Users/name/Downloads"
  • PATH_DOCUMENTS = "/Users/name/Documents"

Automatic Execution

For automatic execution, create a link to the .vbs file within the folder:
C:\Users\'USER NAME'\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

What I learned

  • File Handling: Gained hands-on experience in manipulating files using Python, utilizing functions to read, write, and move files.
  • Path Manipulation: Acquired knowledge of constructing and managing file paths, ensuring cross-platform compatibility with methods like os.path.join().
  • Directory Interaction: Explored directory operations, such as creating, deleting, and navigating directories, using functions from the os module.
  • Error Handling: Developed an understanding of handling potential errors, enhancing the script's robustness and reliability.
  • Operating System Interaction: Deepened comprehension of Python's interaction with the underlying operating system for effective file and folder management.
  • Documentation: Creating clear and concise documentation, such as this README file, helps users understand the purpose and usage of the script.

Contact Me

Feel free to get in touch via:

file-manager-automatization's People

Contributors

francescoromeo02 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.