Skip to content

Delete least recently used files or directories if size quota is surpassed.

License

Notifications You must be signed in to change notification settings

OroraTech/lru-file-cleaner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lru-file-cleaner

Delete files and directories in least recently used order until size quota is reached. Only files and directories at the top-level of the specified directory are considered. For directories, the cumulative size of all contents is considered.

Usage

lru-file-cleaner -dirpath ./foo -quota 1000

This will delete files and directories from the directory ./foo, in least recently used order, until the quota of 1000 bytes is reached.

About

Delete least recently used files or directories if size quota is surpassed.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%