fs

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenFile

func OpenFile(name string, flag int, perm os.FileMode) (io.WriteCloser, error)

func ReadFile

func ReadFile(path string) ([]byte, error)

func Walk

func Walk(root string, walkFn func(path string, isDir bool) error) error

func WriteFile

func WriteFile(path string, data []byte) error

Types

type FileInfo

type FileInfo struct {
	Path   string `json:"path"`
	IsFile bool   `json:"IsFile"`
}

func ReadDir

func ReadDir(path string) ([]FileInfo, error)

func (FileInfo) IsDir

func (fi FileInfo) IsDir() bool

func (FileInfo) Name

func (fi FileInfo) Name() string

Jump to

Keyboard shortcuts

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