Code Monkey home page Code Monkey logo

scripts's People

Contributors

ananthp avatar rpattabi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

scripts's Issues

Ignore file name case sensitivity

On linux, IMG_01.JPG and img_01.jpg are different files. But it is not the case with windows. (pun unintended)

So all the processing should be in case insensitive way, to make these scripts cross platform.

Speed up

It takes a while especially when detecting duplicates.

Duplicate Identification

Currently import script only checks if the same file with the name exists at the target. Instead, it could better do md5 or SHA checksums on the content of the file to decide whether duplicate of the file exists at the target location prior to importing.

Renaming Files: Should add _1 *before* the extension

When the name collision occurs, import-media.rb renames the file, adding _1 while copying it to the target (If a file exists in the target with the same name, but with different content)

But, it adds _1 after the extension. ex: IMG39492.JPG_1

_1 etc should be added before the extension. IMG39492_1.JPG

Move option does not work on windows

This is because of the idiosyncrasies of windows as opposed to linux. Linux allows a file to be moved even when in use; while windows does not allow that.

Need option to copy instead of move

import script currently moves. I want an option to copy instead. The commandline option may be like the following:

ruby import-media.rb [-cp|-mv] /source/path/ /target/path/

-cp | --copy
-mv | --move

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.