Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Enable debug messages FlagDebug = dokan.DOKAN_OPTION_DEBUG // Output debug messages to stderr FlagStderr = dokan.DOKAN_OPTION_STDERR // Enable filename:streamname path FlagAltStream = dokan.DOKAN_OPTION_ALT_STREAM // Readonly FS even if fsys implements OpenWriterFS. FlagsWriteProtect = dokan.DOKAN_OPTION_WRITE_PROTECT // Network drive FlagNetwork = dokan.DOKAN_OPTION_NETWORK // Removable drive FlagRemovable = dokan.DOKAN_OPTION_REMOVABLE )
Variables ¶
This section is empty.
Functions ¶
func MountFS ¶
MountFS mounts fsys on mountPoint.
mountPoint must be a valid unused drive letter or a directory on NTFS.
To provide random access, file opened by fsys should implement io.Seeker or ReaderAt and WriterAt. If only sequential access is provided, many applications will not work properly.
Types ¶
type DiskSpace ¶ added in v0.1.4
type DiskSpace struct { FreeBytesAvailable uint64 TotalNumberOfBytes uint64 TotalNumberOfFreeBytes uint64 }
DiskSpace represents the amount of space that is available on a disk. https://docs.microsoft.com/ja-JP/windows/win32/api/fileapi/nf-fileapi-getdiskfreespaceexa
type MountOptions ¶
type MountOptions struct { VolumeInfo dokan.VolumeInformation DiskSpaceFunc func() DiskSpace // optional Flags uint32 }
type OpenDirFS ¶
An interface for preferentially opening ReadDirFile. If OpenDirFS is not implemented, try using fs.ReadDirFS, then Open file and try using fs.ReadDirFile.
type OpenWriterFS ¶
An interface for opening files for writing.
Click to show internal directories.
Click to hide internal directories.