Documentation ¶
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(changeReceiver chan<- FileChange)
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.