Documentation
¶
Index ¶
- Constants
- type Config
- type FATFS
- func (l *FATFS) Configure(config *Config) *FATFS
- func (l *FATFS) Format() error
- func (l *FATFS) Free() (int64, error)
- func (l *FATFS) Mkdir(path string, _ os.FileMode) error
- func (l *FATFS) Mount() error
- func (l *FATFS) Open(path string) (tinyfs.File, error)
- func (l *FATFS) OpenFile(path string, flags int) (tinyfs.File, error)
- func (l *FATFS) Remove(path string) error
- func (l *FATFS) Rename(oldPath string, newPath string) error
- func (l *FATFS) Stat(path string) (os.FileInfo, error)
- func (l *FATFS) Unmount() error
- type File
- func (f *File) Close() error
- func (f *File) IsDir() bool
- func (f *File) Name() string
- func (f *File) Read(buf []byte) (n int, err error)
- func (f *File) Readdir(n int) (infos []os.FileInfo, err error)
- func (f *File) Size() (int64, error)
- func (f *File) Sync() error
- func (f *File) Write(buf []byte) (n int, err error)
- type FileAttr
- type FileResult
- type Info
- type OpenFlag
- type Type
Constants ¶
View Source
const ( FileResultOK = C.FR_OK /* (0) Succeeded */ FileResultErr FileResult = C.FR_DISK_ERR FileResultIntErr FileResult = C.FR_INT_ERR FileResultNotReady FileResult = C.FR_NOT_READY FileResultNoFile FileResult = C.FR_NO_FILE FileResultNoPath FileResult = C.FR_NO_PATH FileResultInvalidName FileResult = C.FR_INVALID_NAME FileResultDenied FileResult = C.FR_DENIED FileResultExist FileResult = C.FR_EXIST FileResultInvalidObject FileResult = C.FR_INVALID_OBJECT FileResultWriteProtected FileResult = C.FR_WRITE_PROTECTED FileResultInvalidDrive FileResult = C.FR_INVALID_DRIVE FileResultNotEnabled FileResult = C.FR_NOT_ENABLED FileResultNoFilesystem FileResult = C.FR_NO_FILESYSTEM FileResultMkfsAborted FileResult = C.FR_MKFS_ABORTED FileResultTimeout FileResult = C.FR_TIMEOUT FileResultLocked FileResult = C.FR_LOCKED FileResultNotEnoughCore FileResult = C.FR_NOT_ENOUGH_CORE FileResultTooManyOpenFiles FileResult = C.FR_TOO_MANY_OPEN_FILES FileResultInvalidParameter FileResult = C.FR_INVALID_PARAMETER FileResultReadOnly FileResult = 99 TypeFAT12 Type = C.FS_FAT12 TypeFAT16 Type = C.FS_FAT16 TypeFAT32 Type = C.FS_FAT32 TypeEXFAT Type = C.FS_EXFAT AttrReadOnly FileAttr = C.AM_RDO AttrHidden FileAttr = C.AM_HID AttrSystem FileAttr = C.AM_SYS AttrDirectory FileAttr = C.AM_DIR AttrArchive FileAttr = C.AM_ARC SectorSize = 512 FileAccessRead OpenFlag = C.FA_READ FileAccessWrite OpenFlag = C.FA_WRITE FileAccessOpenExisting OpenFlag = C.FA_OPEN_EXISTING FileAccessCreateNew OpenFlag = C.FA_CREATE_NEW FileAccessCreateAlways OpenFlag = C.FA_CREATE_ALWAYS FileAccessOpenAlways OpenFlag = C.FA_OPEN_ALWAYS FileAccessOpenAppend OpenFlag = C.FA_OPEN_APPEND )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FATFS ¶
type FATFS struct {
// contains filtered or unexported fields
}
func New ¶
func New(blockdev tinyfs.BlockDevice) *FATFS
type File ¶
type File struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.