fileUtil

package
v1.3.18 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendByteFile

func AppendByteFile(filePath string, data []byte) error

func AppendStringFile

func AppendStringFile(filePath string, data string) error

func CopyFile

func CopyFile(srcFileName string, dstFileName string) (err error)

func CreateFilePath

func CreateFilePath(path string) error

func CutPath

func CutPath(path string, count int) (string, error)

func CutPathLast

func CutPathLast(path string, count int) (string, error)

func FileInfo

func FileInfo(f string) os.FileInfo

func FixPathSeparator

func FixPathSeparator(path string) string

func GetAllPath

func GetAllPath(path string) ([]string, error)

func GetCurrentDirectory

func GetCurrentDirectory() (string, error)

func GetFilePath

func GetFilePath(filepath string, fileName string) ([]string, error)

func IsExist

func IsExist(f string) bool

func IsFile

func IsFile(f string) bool

func ProjectPath

func ProjectPath() (string, error)

func ReadAll

func ReadAll(filePth string) ([]byte, error)

func ReadAt

func ReadAt(filePth string, off int64, size int64) ([]byte, error)

func WriteByteFile

func WriteByteFile(filePath string, data []byte) error

func WriteStringFile

func WriteStringFile(filePath string, data 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