Documentation ¶
Index ¶
- Constants
- Variables
- func IsPathSeparator(c uint8) bool
- func LFNChecksum(buf []byte) uint8
- type Dir
- type File
- func (f *File) Close() error
- func (f *File) IsDir() bool
- func (f *File) ModTime() time.Time
- func (f *File) Mode() os.FileMode
- func (f *File) Name() string
- func (f *File) Read(b []byte) (int, error)
- func (f *File) Readdir(n int) ([]os.FileInfo, error)
- func (f *File) Seek(off int64, whence int) (int64, error)
- func (f *File) Size() int64
- func (f *File) Stat() (os.FileInfo, error)
- func (f *File) Sys() interface{}
- func (f *File) Write(b []byte) (int, error)
- type FileSystem
- func (fs *FileSystem) Chdir(dir string) error
- func (fs *FileSystem) Chmod(name string, mode os.FileMode) error
- func (fs *FileSystem) Create(name string) (*File, error)
- func (fs *FileSystem) Getwd() (string, error)
- func (fs *FileSystem) Lstat(name string) (os.FileInfo, error)
- func (fs *FileSystem) Mkdir(name string, perm os.FileMode) error
- func (fs *FileSystem) MkdirAll(path string, perm os.FileMode) error
- func (fs *FileSystem) Open(name string) (*File, error)
- func (fs *FileSystem) OpenFile(name string, flag int, perm os.FileMode) (*File, error)
- func (fs *FileSystem) Stat(name string) (os.FileInfo, error)
- func (fs *FileSystem) String() string
- type FileSystemOptions
- type LFN
- type PBS
- type PBS32
Constants ¶
View Source
const ( RDONLY = 1 << iota HIDDEN SYSTEM VOLUME_LABEL DIRECTORY ARCHIVE DEVICE )
View Source
const (
PathSeparator = '/'
)
Variables ¶
View Source
var ( ErrNotDir = errors.New("not a directory") ErrIsDir = errors.New("is a directory") )
Functions ¶
func IsPathSeparator ¶
func LFNChecksum ¶
Types ¶
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
func NewFileSystem ¶
func NewFileSystem(rw iod.RW, opt *FileSystemOptions) (*FileSystem, error)
func (*FileSystem) Chdir ¶
func (fs *FileSystem) Chdir(dir string) error
func (*FileSystem) Getwd ¶
func (fs *FileSystem) Getwd() (string, error)
func (*FileSystem) String ¶
func (fs *FileSystem) String() string
type FileSystemOptions ¶
type FileSystemOptions struct {
Case bool
}
type PBS ¶
type PBS struct { Magic [3]uint8 Version [8]uint8 Sectsz uint16 Clustersz uint8 Resrv uint16 NumFats uint8 Rootsz uint16 Volsz uint16 Mediadesc uint8 Fatsz uint16 Trksz uint16 Heads uint16 Hidden uint32 Bigvolsz uint32 Driveno uint8 Bootsig uint8 Volid uint32 Label [11]uint8 Fstype [8]uint8 // contains filtered or unexported fields }
type PBS32 ¶
type PBS32 struct { Magic [3]uint8 Version [8]uint8 Sectsz uint16 Clustsz uint8 Resrv uint16 NumFats uint8 Rootsz uint16 Volsz uint16 Mediadesc uint8 Fatsz uint16 Trksz uint16 Heads uint16 Hidden uint32 Bigvolsz uint32 Fatsz32 uint32 Extflags uint16 Version1 uint16 Rootstart uint32 Infospec uint16 Backupboot uint16 PhysDrive uint8 Flags uint8 ExtendedBoot uint8 VolumeSerial uint32 Label [11]byte Fstype [8]byte // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.