package
0.0.0-20200723042522-932836ee9d04
Repository: https://github.com/mixpanel/bb-storage.git
Documentation: pkg.go.dev

# Functions

CreateExcl indicates that a new file should be created.
CreateReuse indicates that a new file should be created if it doesn't already exist.
NewFileInfo constructs a FileInfo object that returns fixed values for its methods.
NewLocalDirectory creates a directory handle that corresponds to a local path on the system.
NopDirectoryCloser adds a no-op Close method to a Directory object, similar to how ioutil.NopCloser() adds a Close method to a Reader.

# Constants

FileTypeDirectory means the file is a directory.
FileTypeExecutableFile means the file is a regular file that is executable.
FileTypeOther means the file is neither a regular file, a directory or symbolic link.
FileTypeRegularFile means the file is a regular file that is not executable.
FileTypeSymlink means the file is a symbolic link.

# Variables

DeterministicFileModificationTimestamp is a fixed timestamp that can be provided to Directory.Chtimes() to give files deterministic modification times.
DontCreate indicates that opening should fail in case the target file does not exist.

# Structs

CreationMode specifies whether and how Directory.Open*() should create new files.
FileInfo is a subset of os.FileInfo, only containing the features used by the Buildbarn codebase.

# Interfaces

Directory is an abstraction for accessing a subtree of the file system.
DirectoryCloser is a Directory handle that can be released.
FileAppender is returned by Directory.OpenAppend().
FileReader is returned by Directory.OpenRead().
FileReadWriter is returned by Directory.OpenReadWrite().
FileWriter is returned by Directory.OpenWrite().

# Type aliases

FileInfoList is a list of FileInfo objects returned by Directory.ReadDir().
FileType is an enumeration of the type of a file stored on a file system.