Skip to content

noypi/filemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status GoDoc

###Example:

// create a new watcher
w := filemon.NewWatcher(func(ev *filemon.WatchEvent) {
    fmt.Println(ev)
})

// watch the current path
w.Watch("./")

// wait for a ctrl+c
w.WaitForKill()

###Structs

type WatchEvent struct {
    Fpath string
    Type  EvType
}

type EvType int
const (
    C_Create EvType = iota
    C_Modify
    C_Delete
    C_Rename
    C_Attrib
)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages