Skip to content

mabego/watchdrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

watchdrain is a simple command line tool that monitors a directory until it is empty of files.

I wrote it as an exercise to experiment with Go channels, goroutines, context, and testing in Go.

Installation

go install github.com/mabego/watchdrain@latest

Using go run

git clone https://github.com/mabego/watchdrain.git
cd watchdrain
go run . <directory>

Usage

watchdrain -deadline 1m <directory>

See watchdrain --help for more information.

About

Watch a directory until it is empty of files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages