fanotify

package
v0.0.0-...-518ad3c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

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

type FileChange struct {
	FolderPath string
	ChangeType int
}

FileChange describes the event of changes in a directory FolderPath is the path of the directory Changetype is either Creation or Deletion

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL