Giter VIP home page Giter VIP logo

file-tree-tidier's Introduction

-*- mode: markdown; mode: visual-line; -*-

file-tree-tidier

Copy files from a source tree to a destination tree having a single level of directories named by the modification date of the files.

I wanted to pull all of the photos out of my messy iPhoto directory structure, with its odd menagerie of variously-named subdirectories, and into a simple directory containing a single level of subdirectories, named after the modification date of the files. Think of this as a poor man's rsync. It checks for files that have already been copied, and also checks for clashes (using MD5 checksums, which will make it rather slow).

Usage

Feel free to create an uberjar, or else just run with Leiningen:

    lein run --from-dir ~/Pictures/iPhoto\ Library/Masters/ \
             --to-dir ~/SOMEWHERE-MORE-SENSIBLE

Both root directories must exist.

The additional binary argument --delete-after will delete the source files (but not any of their containing directories) on copy (or if already copied).

To Do

It's obviously possible to get clashes for identically-named files with the same modification date. At the moment this package will print the clashes and ignore them; we need to decide on a simple renaming scheme to apply instead.

License

Copyright © 2014 Nick Rothwell.

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

file-tree-tidier's People

Contributors

cassiel avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

plumpmath

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.