Skip to content

emgee3/scythe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scythe

A recursive file and directory cleaner

###Installation:

npm install -g

###Usage:

scythe [options] <directories>

###Options:

-f, --force       force file deletion
-t, --threshold   file deletion threshold  [7d]
-v, --verbose  

Scythe will walk through directories listed (or current directory) and determine if the files are older (last modified) than the threshold, which defaults to 7 days. If -f is set, these files will be deleted. Scythe will also remove sub-directories that are now empty, but will never remove the directory you passed.

Without passing -f, scythe will run in simulation mode, printing to the command prompt which files will be deleted.

###Note:

Scythe's directory listing in simulation mode differs from force mode due to force mode's deletions making subdirectories empty.

###License:

MIT

Build Status

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published