Versions in this module Expand all Collapse all v0 v0.6.4 Dec 23, 2019 Changes in this version + func RemovePath(testPath string) error + func RenamePath(oldPath, newPath string) error v0.6.0 Dec 3, 2019 Changes in this version + var SkipDir = errors.New("skip this directory") + func AppendFile(srcPath string, destFile *os.File) error + func CopyDir(fromPath, toPath string, includeDirs bool) error + func CopyFile(dst, src string) error + func CreateDirIfNotExist(path string) error + func CreateFilePath(localPath, fileName string) (string, error) + func CreateTempDir() (string, error) + func FindUpstream(itemToFInd string, itemType ItemType) (wd string, exists bool, err error) + func GetFileAndDirFromPath(path string) (fileName, dir string) + func GetFileInfo(path string, preserveSymLink bool) (fileInfo os.FileInfo, err error) + func GetFileSeparator() string + func GetFileSize(file *os.File) (int64, error) + func GetHomeDir() string + func GetLocalPathAndFile(originalFileName, relativePath, targetPath string, flat bool) (localTargetPath, fileName string) + func GetUploadRequestContent(file *os.File) io.Reader + func IsDirExists(path string, preserveSymLink bool) (bool, error) + func IsFileExists(path string, preserveSymLink bool) (bool, error) + func IsFileSymlink(file os.FileInfo) bool + func IsPathExists(path string, preserveSymLink bool) bool + func IsPathSymlink(path string) bool + func IsSshUrl(urlPath string) bool + func IsZip(filename string) bool + func ListFiles(path string, includeDirs bool) ([]string, error) + func ListFilesRecursiveWalkIntoDirSymlink(path string, walkIntoDirSymlink bool) (fileList []string, err error) + func ListFilesWithExtension(path, ext string) ([]string, error) + func ReadFile(filePath string) ([]byte, error) + func RemoveTempDir(dirPath string) error + func SetTempDirBase(dirPath string) + func Unzip(at io.ReaderAt, size int64, dest string) error + func Walk(root string, walkFn WalkFunc, walkIntoDirSymlink bool) error + func ZipFolderFiles(source, target string) (err error) + type ChecksumDetails struct + Md5 string + Sha1 string + Sha256 string + type FileDetails struct + Checksum ChecksumDetails + Size int64 + func GetFileDetails(filePath string) (*FileDetails, error) + type ItemType string + const Dir + const File + const SYMLINK_FILE_CONTENT + type Stat func(path string) (info os.FileInfo, err error) + type WalkFunc func(path string, info os.FileInfo, err error) error