Documentation
¶
Index ¶
- Constants
- type BPB
- type EntryHeader
- type ExtendedEntryHeader
- type FAT16SpecificData
- type FAT32SpecificData
- type FATType
- type File
- func (f *File) Close() error
- func (f *File) Name() string
- func (f *File) Read(p []byte) (n int, err error)
- func (f *File) ReadAt(p []byte, off int64) (n int, err error)
- func (f *File) Readdir(count int) ([]os.FileInfo, error)
- func (f *File) Readdirnames(n int) ([]string, error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Stat() (os.FileInfo, error)
- func (f *File) Sync() error
- func (f *File) Truncate(size int64) error
- func (f *File) Write(p []byte) (n int, err error)
- func (f *File) WriteAt(p []byte, off int64) (n int, err error)
- func (f *File) WriteString(s string) (ret int, err error)
- type Fs
- func (fs *Fs) Chmod(name string, mode os.FileMode) error
- func (fs *Fs) Chown(name string, uid, gid int) error
- func (fs *Fs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (fs *Fs) Create(name string) (afero.File, error)
- func (fs *Fs) FSType() FATType
- func (fs *Fs) Label() string
- func (fs *Fs) Mkdir(name string, perm os.FileMode) error
- func (fs *Fs) MkdirAll(path string, perm os.FileMode) error
- func (fs *Fs) Name() string
- func (fs *Fs) Open(path string) (afero.File, error)
- func (fs *Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (fs *Fs) Remove(name string) error
- func (fs *Fs) RemoveAll(path string) error
- func (fs *Fs) Rename(oldname, newname string) error
- func (fs *Fs) Stat(path string) (os.FileInfo, error)
- type Info
- type LongFilenameEntry
- type Sector
Constants ¶
View Source
const ( AttrReadOnly = 0x01 AttrHidden = 0x02 AttrSystem = 0x04 AttrVolumeId = 0x08 AttrDirectory = 0x10 AttrArchive = 0x12 AttrLongName = AttrReadOnly | AttrHidden | AttrSystem | AttrVolumeId )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BPB ¶
type BPB struct {
BSJumpBoot [3]byte
BSOEMName [8]byte
BytesPerSector uint16
SectorsPerCluster byte
ReservedSectorCount uint16
NumFATs byte
RootEntryCount uint16
TotalSectors16 uint16
Media byte
FATSize16 uint16
SectorsPerTrack uint16
NumberOfHeads uint16
HiddenSectors uint32
TotalSectors32 uint32
FATSpecificData [54]byte
}
type EntryHeader ¶
type ExtendedEntryHeader ¶
type ExtendedEntryHeader struct {
EntryHeader
ExtendedName string
}
func (*ExtendedEntryHeader) FileInfo ¶
func (h *ExtendedEntryHeader) FileInfo() os.FileInfo
type FAT16SpecificData ¶
type FAT32SpecificData ¶
type Fs ¶
type Fs struct {
// contains filtered or unexported fields
}
func NewSkipChecks ¶
func NewSkipChecks(reader io.ReadSeeker) (*Fs, error)
type Info ¶
type Info struct {
FSType FATType
FatCount uint8
FatSize uint32
SectorsPerCluster uint8
FirstDataSector uint32
TotalSectorCount uint32
ReservedSectorCount uint16
BytesPerSector uint16
Label string
RootEntryCount uint16 // RootEntryCount is only needed for < FAT32.
// contains filtered or unexported fields
}
Info contains all information about the whole filesystem.
type LongFilenameEntry ¶
Click to show internal directories.
Click to hide internal directories.