Skip to content

aaronedell/deleto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

deleto logo Go Report Card

deleto

Randomly delete files from a directory.

If you're into machine learning and classification, then you know your classes need to be balanced. Sometimes, when I create large datasets to use with imgclass or txtclass, each folder can have a different number of files. In order to make them the same, I calculate the difference and use this tool to randomly delete X number of files from the target directory.

Usage

$ go run main.go -dir=path/to/target -num=[number of files to delete]

About

Randomly delete X number of files from a directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages