Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { // File is the name of the file File string // Path is the path to the file Path string // Destination is the path to the destination Destination string // Ext is the file extension Ext string // Operation is the operation that was performed Operation string // IsDir is the new create vent a directory IsDir bool // Timestamp in unix time epoch Timestamp time.Time }
Event is a struct that holds the information for a file event
func (*Event) IsNewDirEvent ¶
IsNewDirEvent returns a bool if the given path is a directory or not
func (*Event) IsValidEvent ¶
IsValidEvent checks if the event operation and file extension is valid
Click to show internal directories.
Click to hide internal directories.