# Functions
CheckDirPermission checks permission on an existing dir.
CreateDirAll is similar to TouchDirAll but returns error if the deepest directory was not empty.
DirEmpty returns true if a directory empty and can access.
Exist returns true if a file or directory exists.
Fdatasync is similar to fsync(), but does not flush modified metadata unless that metadata is needed in order to allow a subsequent data retrieval to be correctly handled.
Fsync is a wrapper around file.Sync().
IsDirWriteable checks if dir is writable by writing and removing a file to dir.
OpenDir opens a directory for syncing.
Preallocate tries to allocate the space for given file.
ReadDir returns the filenames in the given directory in sorted order.
RemoveMatchFile deletes file if matchFunc is true on an existing dir Returns error if the dir does not exist or remove file fail.
TouchDirAll is similar to os.MkdirAll.
WithExt filters file names by their extensions.
ZeroToEnd zeros a file starting from SEEK_CUR to its SEEK_END.
# Constants
PrivateDirMode grants owner to make/remove files inside the directory.
PrivateFileMode grants owner to read/write a file.
# Type aliases
ReadDirOption configures archiver operations.