hfs

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(c disk.Content, opt Options) error

Format creates an empty classic HFS volume on c.

Types

type Options

type Options struct {
	Name    string
	Size    int64
	Created time.Time
}

Options for Format / Flush.

type Volume

type Volume struct {
	// contains filtered or unexported fields
}

Volume is a classic HFS filesystem (machfs in-memory catalog, flushed to disk.Content). Forks are vfs.ContentFile over the in-memory node buffers.

func Mount

func Mount(c disk.Content, writable bool) (*Volume, error)

func (*Volume) CanWrite

func (v *Volume) CanWrite() bool

func (*Volume) Close

func (v *Volume) Close() error

func (*Volume) CreateDir

func (v *Volume) CreateDir(path string) error

func (*Volume) CreateFile

func (v *Volume) CreateFile(path string) error

func (*Volume) Flush

func (v *Volume) Flush() error

func (*Volume) MkdirAll

func (v *Volume) MkdirAll(path string) error

func (*Volume) Name

func (v *Volume) Name() string

func (*Volume) OpenFile

func (v *Volume) OpenFile(path string, fork vfs.Fork, flag int) (vfs.File, error)

func (*Volume) ReadDir

func (v *Volume) ReadDir(path string) ([]vfs.FileInfo, error)

func (*Volume) Remove

func (v *Volume) Remove(path string) error

func (*Volume) Rename

func (v *Volume) Rename(oldpath, newpath string) error

func (*Volume) SetInfo

func (v *Volume) SetInfo(path string, info vfs.FileInfo) error

func (*Volume) Stat

func (v *Volume) Stat(path string) (vfs.FileInfo, error)

func (*Volume) VolumeLabel

func (v *Volume) VolumeLabel() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL