Skip to content

reconquest/treetrunks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

treetrunks

Little tool, that will remove all files and directories from specified directory, which are not exist in source directory.

It will not compare contents of the files, only existence matters.

treetrunks outputs list of deleted files and directories on the standard output.

It will also provide dry run mode, in which treetrunks will print exactly the same output how it will print in real delete mode, but will not delete any files.

Usage

treetrunks will search target directory for the files and directories that are
not exists in the source directory, and then will delete them recursively.

treetrunks can be run in dry-run mode optionally.

treetrunks will print removed files and directories on the standard output.

Every printed directory will end with single slash (/).

Usage:
    treetrunks -h | --help
    treetrunks [-n] <source> <target>

Arguments:
    <source>   Source directory to compare with.
    <target>   Target directory to delete from.

Options:
    -h --help     Show this help.
    -n --dry-run  Run in dry mode, do not delete anything, just print.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages