Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/rotPublic

"I will delete that file later, promised" – because humans are so bad at keeping promises!

License

NotificationsYou must be signed in to change notification settings

jojomi/rot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Report Card

You have that file on your hard disk (oh SSD these days, pardon me) that you might need in a couple hours or a few days. You know you probably won't need it again, but what if? What if you have to install your Linux server yet again tomorrow because you already screwed it up? Would you want to redownload that huge ISO file? Rather not, but you will forget about that file sitting in your downloads folder occupying all that precious expansive storage space. If you are lucky, you will find it hogging your resources unnecessarily when cleaning up in a year thinking why the hell you never got around to delete that hopelessly outdated and outrageously big file. You are human! And you are not alone. I feel with you. Let's have someone (something?) else take care.

rot is a tool that will take care of removing files and folders you know you will not need anymore after a certain time. You can specify either a number of hours or days or a rot date after whichrot can safely remove it from your disk.

Usage

rot empowers you to stage files and folders for rotting (later deletion).Usage:  rot [command]Available Commands:  add         Add files or folders for rotting  clean       Clean files and folders that are rotten  help        Help about any command  list        List the files and folders current rotting  stop        Stops a file or folder from rotting

For all usage details callrot --help or add--help to any of the subcommands listed.

You could userot clean --dry-run for monitoring if there are files that should be deleted. If you are brave enough to automate it more, run the commandrot clean periodically. If you want to monitor for files or folders that were changed since being staged for deletion, use this:rot list --changed.

Downloads

Currently this project is inalpha status. This means even though there is unit tests for the basic features it still needs to be tested with real life use cases. Ready-built binaries can be downloaded on thereleases page.

You can build and run this code like any otherGo code:

go install github.com/jojomi/rot@latest

Development

If you encounter problems please open an issue.

Run Tests

go test github.com/jojomi/rot/cmd

About

"I will delete that file later, promised" – because humans are so bad at keeping promises!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp