Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

Stars

12 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages