github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/filesystem/mode_windows.go (about)

     1  package filesystem
     2  
     3  import (
     4  	"os"
     5  )
     6  
     7  // Mode is an opaque type representing a file mode. It is guaranteed to be
     8  // convertable to a uint32 value. On Windows sytems, it is provided by the os
     9  // package's FileMode implementation.
    10  type Mode os.FileMode
    11  
    12  const (
    13  	// ModeTypeMask is a bit mask that isolates type information. After masking,
    14  	// the resulting value can be compared with any of the ModeType* values
    15  	// (other than ModeTypeMask).
    16  	ModeTypeMask = Mode(os.ModeType)
    17  	// ModeTypeDirectory represents a directory.
    18  	ModeTypeDirectory = Mode(os.ModeDir)
    19  	// ModeTypeFile represents a file.
    20  	ModeTypeFile = Mode(0)
    21  	// ModeTypeSymbolicLink represents a symbolic link.
    22  	ModeTypeSymbolicLink = Mode(os.ModeSymlink)
    23  )