Skip to content

This is a little utility to list and remove specific file types from a directory.

Notifications You must be signed in to change notification settings

overfl0wd/clean-directory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

clean-directory

This is a little utility to list and remove specific file types from a directory.

It has three functions, which are:

  • Check a directory for all unique file extensions it contains.
  • List all files with the extensions specified in source, essentially a dry-run.
  • Remove all files with the matched extensions

To change what file extensions are searched for, edit the array $filetypes.

edit this to use

Usage

./cleanDirectory.sh <target directory> <action>

  1. ./cleanDirectory.sh repository/ check
  2. ./cleanDirectory.sh repository/ list
  3. ./cleanDirectory.sh repository/ remove

About

This is a little utility to list and remove specific file types from a directory.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages