Documentation ¶
Overview ¶
Modified version of https://github.com/ozeidan/gosearch/blob/master/internal/fanotify/fanotify.go Changes: - support for modified files - support for attributes change
Index ¶
Constants ¶
View Source
const ( // Creation of a file/directory Creation = iota // Deletion of a file/directory Deletion )
Variables ¶
This section is empty.
Functions ¶
func Listen ¶
func Listen( listenDir string, isFiltered func(path string) bool, changeReceiver chan<- FileChange, ) error
Listen starts listening for created/deleted/moved files in the whole file system changeReceiver is a channel that FileChange structs, which describe the events, will be sent through
Types ¶
type FileChange ¶
FileChange describes the event of changes in a directory FolderPath is the path of the directory Changetype is either Creation or Deletion
Click to show internal directories.
Click to hide internal directories.