Skip to content

solygen/node-cluster-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-cluster-files

CLI that rename files of a directory based on the creation date and clusters them in monthly based subdirectories

cluster.js

  • client

cluster-core.js

  • core functionality

function: process(basepath) returns hash with source/target

  Usage: cluster-cli <path (default:current path)> [options]

  Clusters files in subdirectories based on month of creation

  Options:

    -h, --help       output usage information
    -V, --version    output the version number
    -r, --rename     also rename files [YYYY-MM-DD_HH-mm-ss]
    -o, --overwrite  overwrite if file already exists (when rename is disabeld)
    -d, --details    show detailed output
    -s, --simulate   simulate
    -y, --yes        skip prompt

example

$ ls my-path

001.jpg
002.jpg
003.jpg

$ cluster my-path
$ ls

2015-09/2015-09-04_12-31-57.jpg
2015-09/2015-09-04_13-34-01.jpg
2015-09/2015-09-11_17-31-49.jpg

todo

About

rename and group files by creation date into folder separated by month

Resources

License

Stars

Watchers

Forks

Packages

No packages published