Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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-files

go 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"
}
```