Documentation ¶
Index ¶
- Constants
- func VFSVar(p *VFS, name string, value VFS, usage string)
- type VFS
- func (vfs *VFS) Abs() (string, error)
- func (vfs *VFS) FsServer() string
- func (vfs *VFS) Host() string
- func (vfs *VFS) Is(t VFSType) bool
- func (vfs *VFS) IsDisk() bool
- func (vfs *VFS) IsEmpty() bool
- func (vfs *VFS) LocalSyncDisabled() bool
- func (vfs *VFS) Path() string
- func (vfs *VFS) Port() int
- func (vfs *VFS) Server() bool
- func (vfs *VFS) Type() VFSType
- type VFSType
Constants ¶
View Source
const ( RemoteServerScheme = "rs://" RemoteServerDefaultPort = 8105 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VFS ¶
type VFS struct {
// contains filtered or unexported fields
}
VFS virtual file system
func NewDiskVFS ¶
NewDiskVFS create an instance of VFS for the local disk file system
func NewEmptyVFS ¶
func NewEmptyVFS() VFS
NewEmptyVFS create an instance of VFS for the unknown file system
func NewVFS ¶
NewVFS auto recognition the file system and create an instance of VFS according to the path
func VFSFlag ¶
VFSFlag defines a VFS flag with specified name, default value, and usage string. The return value is the address of a VFS variable that stores the value of the flag.
func (*VFS) LocalSyncDisabled ¶
LocalSyncDisabled is local disk sync disabled
type VFSType ¶
type VFSType int
VFSType the file data source type
const ( // Unknown the unknown file data source Unknown VFSType = iota // Disk the local disk file system data source Disk // RemoteDisk the remote disk file system data source RemoteDisk // FTP the ftp data source FTP // SFTP the sftp data source SFTP // NetworkDisk the network disk data source NetworkDisk SharedFolder )
Click to show internal directories.
Click to hide internal directories.