Documentation ¶
Overview ¶
Package filesystem provides interfaces and constants required for filesystem implementations. All interesting implementations are in subpackages, e.g. github.com/diskfs/go-diskfs/filesystem/fat32
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FS ¶
func FS(f FileSystem) fs.ReadDirFS
FS converts a diskfs FileSystem to a fs.FS for compatibility with other utilities
Types ¶
type File ¶
type File interface { io.ReadWriteSeeker io.Closer }
File a reference to a single file on disk
type FileSystem ¶
type FileSystem interface { // Type return the type of filesystem Type() Type // Mkdir make a directory Mkdir(string) error // ReadDir read the contents of a directory ReadDir(string) ([]os.FileInfo, error) // OpenFile open a handle to read or write to a file OpenFile(string, int) (File, error) // Label get the label for the filesystem, or "" if none. Be careful to trim it, as it may contain // leading or following whitespace. The label is passed as-is and not cleaned up at all. Label() string // SetLabel changes the label on the writable filesystem. Different file system may hav different // length constraints. SetLabel(string) error }
FileSystem is a reference to a single filesystem on a disk
Directories ¶
Path | Synopsis |
---|---|
Package fat32 provides utilities to interact with, manipulate and create a FAT32 filesystem on a block device or a disk image.
|
Package fat32 provides utilities to interact with, manipulate and create a FAT32 filesystem on a block device or a disk image. |
Package iso9660 provides utilities to interact with, manipulate and create an iso9660 filesystem on a block device or a disk image.
|
Package iso9660 provides utilities to interact with, manipulate and create an iso9660 filesystem on a block device or a disk image. |
Package squashfs provides support for reading and creating squashfs filesystems references:
|
Package squashfs provides support for reading and creating squashfs filesystems references: |
Click to show internal directories.
Click to hide internal directories.