file

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	IsDirEmpty(dir string) (bool, error)
	ReadDir(dir string) ([]string, error)
	Mkdir(dir string) error
	RemoveDir(dir string) error
	RemoveFile(file string) error
	Rename(src, dst string) error
	Copy(src, dst string) error
	Symlink(target, link string) error
	ReadLink(link string) (string, error)
	ReadFile(file string) ([]byte, error)
	WriteFile(file string, data []byte) error
	AppendFile(file string, data []byte) error
	Exists(file string) (bool, error)
	IsFile(file string) (bool, error)
	IsDir(dir string) (bool, error)
	Stat(file string) (os.FileInfo, error)
	Chmod(file string, mode os.FileMode) error
	Walk(root string) ([]string, error)
	WalkDir(root string) ([]string, error)
	WalkFile(root string) ([]string, error)
	WalkRel(root string) ([]string, error)
	Glob(pattern string) ([]string, error)
}

func New

func New() File

Jump to

Keyboard shortcuts

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