fsutils

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirPerm  = 0755
	InfoFile = ".info.json"
)

Variables

This section is empty.

Functions

func CopyFolder

func CopyFolder(srcPath, dstPath string) error

func CreateAllFolder

func CreateAllFolder(path string) error

func CreateBinary added in v0.0.6

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

func CreateEntry

func CreateEntry(path string, entry *entity.Entry, isIndent bool) error

func CreateFolder

func CreateFolder(path string) error

func CreateInfo

func CreateInfo(path string, data *entity.FolderInfo, isIndent bool) error

func GetBinary added in v0.0.6

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

func GetEntry

func GetEntry(path string) (*entity.Entry, error)

func GetInfo

func GetInfo(path string) (*entity.FolderInfo, error)

func IsFileExist added in v0.0.6

func IsFileExist(path string) (isExist bool, err error)

func IsFolderExist

func IsFolderExist(path string) (isExist bool, err error)

func List

func List(path string) (*entity.List, error)

func MoveObject added in v0.0.6

func MoveObject(oldPath, newPath string) error

func RemoveBinary added in v0.0.6

func RemoveBinary(path string) error

func RemoveEntry

func RemoveEntry(path string) error

func RemoveFolder

func RemoveFolder(path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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