Versions in this module Expand all Collapse all v1 v1.0.48 May 8, 2018 Changes in this version + const ExistingDir + const ExistingFile + const NewDir + const NewFile + type CreateStatus uint32 + func (cst CreateStatus) IsDir() bool + func (cst CreateStatus) IsNew() bool v1.0.44 Feb 21, 2018 Changes in this version + const CDebug + const CStderr + const CurrentSession + const ErrAccessDenied + const ErrDirectoryNotEmpty + const ErrFileAlreadyExists + const ErrFileIsADirectory + const ErrNotADirectory + const ErrNotSameDevice + const ErrNotSupported + const ErrObjectNameCollision + const ErrObjectNameNotFound + const ErrObjectPathNotFound + const FileAttributeArchive + const FileAttributeDirectory + const FileAttributeHidden + const FileAttributeNormal + const FileAttributeReadonly + const FileAttributeReparsePoint + const FileAttributeSystem + const FileCasePreservedNames + const FileCaseSensitiveSearch + const FileCreate + const FileDirectoryFile + const FileFileCompression + const FileNamedStreams + const FileNonDirectoryFile + const FileOpen + const FileOpenIf + const FileOpenReparsePoint + const FileOverwrite + const FileOverwriteIf + const FilePersistentAcls + const FileReadOnlyVolume + const FileSequentalWriteOnce + const FileSupersede + const FileSupportObjectIDs + const FileSupportsEncryption + const FileSupportsExtendedAttributes + const FileSupportsHardLinks + const FileSupportsOpenByFileID + const FileSupportsRemoteStorage + const FileSupportsReparsePoints + const FileSupportsSparseFiles + const FileSupportsTransactions + const FileSupportsUsnJournal + const FileUnicodeOnDisk + const FileVolumeIsCompressed + const FileVolumeQuotas + const IOReparseTagSymlink + const MountManager + const Removable + const StatusBufferOverflow + const StatusObjectNameExists + const UseFindFilesWithPattern + func Unmount(path string) error + type Config struct + DllPath string + FileSystem FileSystem + MountFlags MountFlag + Path string + type CreateData struct + CreateDisposition CreateDisposition + CreateOptions uint32 + DesiredAccess uint32 + FileAttributes FileAttribute + ShareAccess uint32 + func (cd *CreateData) ReturningDirAllowed() error + func (cd *CreateData) ReturningFileAllowed() error + type CreateDisposition uint32 + type File interface + CanDeleteDirectory func(ctx context.Context, fi *FileInfo) error + CanDeleteFile func(ctx context.Context, fi *FileInfo) error + Cleanup func(ctx context.Context, fi *FileInfo) + CloseFile func(ctx context.Context, fi *FileInfo) + FindFiles func(ctx context.Context, fi *FileInfo, pattern string, ...) error + FlushFileBuffers func(ctx context.Context, fi *FileInfo) error + GetFileInformation func(ctx context.Context, fi *FileInfo) (*Stat, error) + GetFileSecurity func(ctx context.Context, fi *FileInfo, si winacl.SecurityInformation, ...) error + LockFile func(ctx context.Context, fi *FileInfo, offset int64, length int64) error + ReadFile func(ctx context.Context, fi *FileInfo, bs []byte, offset int64) (int, error) + SetAllocationSize func(ctx context.Context, fi *FileInfo, length int64) error + SetEndOfFile func(ctx context.Context, fi *FileInfo, length int64) error + SetFileAttributes func(ctx context.Context, fi *FileInfo, fileAttributes FileAttribute) error + SetFileSecurity func(ctx context.Context, fi *FileInfo, si winacl.SecurityInformation, ...) error + SetFileTime func(ctx context.Context, fi *FileInfo, creation time.Time, lastAccess time.Time, ...) error + UnlockFile func(ctx context.Context, fi *FileInfo, offset int64, length int64) error + WriteFile func(ctx context.Context, fi *FileInfo, bs []byte, offset int64) (int, error) + type FileAttribute uint32 + type FileInfo struct + func (fi *FileInfo) IsDeleteOnClose() bool + func (fi *FileInfo) IsRequestorUserSidEqualTo(sid *winacl.SID) bool + func (fi *FileInfo) NumberOfFileHandles() uint32 + func (fi *FileInfo) Path() string + type FileSystem interface + CreateFile func(ctx context.Context, fi *FileInfo, data *CreateData) (file File, isDirectory bool, err error) + ErrorPrint func(error) + GetDiskFreeSpace func(ctx context.Context) (FreeSpace, error) + GetVolumeInformation func(ctx context.Context) (VolumeInformation, error) + MoveFile func(ctx context.Context, sourceHandle File, sourceFileInfo *FileInfo, ...) error + WithContext func(context.Context) (context.Context, context.CancelFunc) + type FileSystemFlags uint32 + type FreeSpace struct + FreeBytesAvailable uint64 + TotalNumberOfBytes uint64 + TotalNumberOfFreeBytes uint64 + type MountFlag uint32 + type MountHandle struct + Dir string + func Mount(cfg *Config) (*MountHandle, error) + func (m *MountHandle) BlockTillDone() error + func (m *MountHandle) Close() error + type NamedStat struct + Name string + ShortName string + type NtStatus uint32 + func (n NtStatus) Error() string + type SID syscall.SID — windows/amd64 + type Stat struct + Creation time.Time + FileAttributes FileAttribute + FileIndex uint64 + FileSize int64 + LastAccess time.Time + LastWrite time.Time + NumberOfLinks uint32 + ReparsePointTag uint32 + VolumeSerialNumber uint32 + type VolumeInformation struct + FileSystemFlags FileSystemFlags + FileSystemName string + MaximumComponentLength uint32 + VolumeName string + VolumeSerialNumber uint32 Incompatible versions in this module v2.11.0+incompatible Nov 30, 2018