Giter Site home page Giter Site logo

addate's Introduction

Addate

Have you noticed that your various capture devices (your phone, camera, GoPro, etc) have their own file naming scheme?
Usually this isn't a big deal; untill you try to move all you files in to one folder. This is when you realize that every piece of software (file manager, editors, image viewers, browsers, etc) defaults to alphabetically listing/consuming your files; making it difficult and sometimes impossible to view them in chronological order. Sometimes the gods are extra cruel and you can have conflicting filenames from multiple sources.

Addate (Add-Date) solves this annoyance by providing a multithreaded tool to prepend (append to front) the file creation date/time to your filenames. Using this lets your files be chronologically sorted by default!

Before After

Many thanks to difference-engine/thumbnail-generator-ubuntu which I used as a reference.

Basic Usage

# Rename files in side a directory and it's subdirectories
addate -r -d directory1

# Rename files from two directories
addate -d directory1/directory1_1 directory2

# Pulling up the help
addate --help

Command Line Options

short long Description
-d --img_dirs Directories to scan for files and rename; separated by space, eg: "dir1/dir2 dir3" [required]
-w --workers No of processing threads to spawn
-i --only_images Whether to only rename images
-r --recursive Whether to recursively look in to sub folders for files
--help CLI help

Installation

Clone repo, navigate to folder and install using:

pip3 install .

To uninstall run:

pip3 uninstall addate

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.