fileUtils

package
v0.0.0-...-66d4e42 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsolutePath

func AbsolutePath(pth string) string

func AddPathSepIfNeeded

func AddPathSepIfNeeded(pth string) string

func CopyFile

func CopyFile(src, dst string) (int64, error)

func FileExist

func FileExist(path string) bool

func GetExtName

func GetExtName(pathOrUrl string) string

func GetFileName

func GetFileName(pathOrUrl string) string

func GetFileNameWithoutExt

func GetFileNameWithoutExt(pathOrUrl string) string

func GetFilesFromParams

func GetFilesFromParams(arguments []string) []string

func GetLogDir

func GetLogDir() string

func GetZTFDir

func GetZTFDir() (dir string, isDebug bool)

func IsAbosutePath

func IsAbosutePath(pth string) bool

func IsDir

func IsDir(f string) bool

func MkDirIfNeeded

func MkDirIfNeeded(dir string) error

func ReadFile

func ReadFile(filePath string) string

func ReadFileBuf

func ReadFileBuf(filePath string) []byte

func ReadResData

func ReadResData(path string) string

func RemovePathSepIfNeeded

func RemovePathSepIfNeeded(pth string) string

func RmDir

func RmDir(dir string) error

func WriteFile

func WriteFile(filePath string, content string)

func ZipFiles

func ZipFiles(dist string, dir 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