fileUtils

package
v0.0.0-...-74516c0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsoluteDir

func AbsoluteDir(pth string) string

func AbsoluteFile

func AbsoluteFile(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 GetExeDir

func GetExeDir() (dir string, isDebug 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 GetParent

func GetParent(fileOrDir string) (dir string)

func GetWorkDir

func GetWorkDir() string

func IsAbsolutePath

func IsAbsolutePath(pth string) bool

func IsDir

func IsDir(f string) bool

func MkDirIfNeeded

func MkDirIfNeeded(dir string) error

func ReadConfFromBin

func ReadConfFromBin(filePath string) (bytes []byte, err error)

func ReadFile

func ReadFile(filePath string) string

func ReadFileBuf

func ReadFileBuf(filePath string) []byte

func RemoveLastSep

func RemoveLastSep(fileOrDir string) (dir string)

func RemovePathSepIfNeeded

func RemovePathSepIfNeeded(pth string) string

func RmDir

func RmDir(dir string) error

func Upload

func Upload(url string, files []string, extraParams map[string]string) (uploadResult model.UploadResponse, err 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