func (e *FileEvent) IsCreate() bool {
    return (e.mask&IN_CREATE) == IN_CREATE || (e.mask&IN_MOVED_TO) == IN_MOVED_TO
}
IsCreate reports whether the FileEvent was triggerd by a creation
package fsnotify
import (
    "errors"
    "fmt"
    "os"
    "strings"
    "sync"
    "syscall"
    "unsafe"
)
type FileEvent struct {
    mask   uint32  
    cookie uint32  
    Name   string  
}