watcher := kwatcher.NewWatcher()
watcher.SetInterval(time.Second)
watcher.AddFiles("path/to/file")
watcher.SetCallback(func(modifyFiles []kwatcher.Path) {
for _, path := range modifyFiles {
fmt.Println(path + "changed")
}
})
watcher.Run()
-
Notifications
You must be signed in to change notification settings - Fork 0
sxk10812139/kwatcher
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
File watcher
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published