Giter Site home page Giter Site logo

files-organizer's Introduction

Files organizer By date

Description

This Python script organizes files into a structured folder hierarchy based on their creation date. It supports multiple calendar systems (Gregorian and Hebrew) and can determine the creation date from various sources (file name, file system metadata, or EXIF data for images).

Features

+ Flexible date handling: Choose between Gregorian and Hebrew calendars.
+ Multiple date sources: Extract creation dates from file names, file system metadata, or EXIF data.
+ Customizable output: Specify a destination path or use the source path by default.
+ Copying or moving: Choose to either copy or move files to their new locations.
+ Automatic conflict resolution: Renames files with timestamp prefixes to avoid overwriting existing files.
+ Progress tracking: Prints messages indicating the number of files remaining to be processed.

Usage

---
    1. Install required libraries: pip install pyluach

    2. Run the script from the command line: python files_org.py
        Provide arguments as needed:
        --path or -s: The path to the source directory containing the files to organize.
        --dest_path or -dp: (Optional) The path to the destination directory where organized files will be placed. Defaults to the source path.
        --copy or -c: (Optional) Set to 'y' to copy files instead of moving them. Defaults to moving files.
        --calander_type or -ct: (Optional) Set to '2' to use the Hebrew calendar. Defaults to the Gregorian calendar.
        --date_source or -d: (Optional) Set to '1' to use file names, '2' to use file system metadata, or '3' to use EXIF data. Defaults to file system metadata.

---

files-organizer's People

Contributors

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