fs

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

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

func New

func New(root string) (*FS, error)

func (*FS) CreateDir

func (fs *FS) CreateDir(path string) error

func (*FS) CreateFile

func (fs *FS) CreateFile(path, content string) error

func (*FS) DeleteDir

func (fs *FS) DeleteDir(path string) error

func (*FS) DeleteFile

func (fs *FS) DeleteFile(path string) error

func (*FS) ListDir

func (fs *FS) ListDir(path string) ([]FileInfo, error)

func (*FS) ReadFile

func (fs *FS) ReadFile(path string) (string, error)

func (*FS) Tools

func (fs *FS) Tools(ctx context.Context) ([]tool.Tool, error)

type FileInfo

type FileInfo struct {
	Name string `json:"name"`
	Path string `json:"path"`

	Size      int64     `json:"size"`
	Timestamp time.Time `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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