Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghedamat/go-clean-files
My very first go program
https://github.com/ghedamat/go-clean-files
Last synced: 15 days ago
JSON representation
My very first go program
- Host: GitHub
- URL: https://github.com/ghedamat/go-clean-files
- Owner: ghedamat
- Created: 2013-12-14T20:22:25.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-30T18:11:52.000Z (over 10 years ago)
- Last Synced: 2024-10-28T17:16:48.884Z (about 2 months ago)
- Language: Go
- Size: 168 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go clean Files
my first go yakshave
Find all the files under a given path that are older then a given date
warn me via email
delete them
## Usage
```
go get github.com/ghedamat/go-clean-filesgo install github.com/ghedamat/go-clean-files
go-clean-files -h
```## Config File
The script expects a config file
`.go-clean-filesrc` in your home directory
written in json format```
example:
{
"server": "smtp.gmail.com",
"port": 587,
"username": "[email protected]",
"password": "password",
"to": "[email protected], [email protected]",
"mailThreshold": 90,
"deleteThreshold": 97,
"subject": "email subject"
}
```