Versions in this module Expand all Collapse all v1 v1.0.0 Mar 31, 2023 Changes in this version + func AppendFile(srcPath string, destFile *os.File) error + func CleanOldDirs() error + func CopyDir(fromPath, toPath string, includeDirs bool, excludeNames []string) error + func CopyFile(dst, src string) (err error) + func CreateDirIfNotExist(path string) error + func CreateFilePath(localPath, fileName string) (string, error) + func CreateTempDir() (string, error) + func CreateTempFile() (*os.File, error) + func FilesIdentical(file1 string, file2 string) (bool, 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 IsDirEmpty(path string) (isEmpty bool, err error) + func IsDirExists(path string, preserveSymLink bool) (bool, error) + func IsEqualToLocalFile(localFilePath, md5, sha1 string) (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 IsSupportedArchive(filePath string) bool + func JsonEqual(filePath1, filePath2 string) (isEqual bool, err error) + func ListFiles(path string, includeDirs bool) ([]string, error) + func ListFilesByFilterFunc(path string, filterFunc func(filePath string) (bool, error)) ([]string, error) + func ListFilesRecursiveWalkIntoDirSymlink(path string, walkIntoDirSymlink bool) (fileList []string, err error) + func MoveDir(fromPath, toPath string) error + func MoveFile(sourcePath, destPath string) (err error) + func ReadFile(filePath string) ([]byte, error) + func RemoveDirContents(dirPath string) (err error) + func RemovePath(testPath string) error + func RemoveTempDir(dirPath string) error + func RenamePath(oldPath, newPath string) error + func SetTempDirBase(dirPath string) + func Unarchive(localArchivePath, originArchiveName, destinationPath string) error + func ZipFolderFiles(source, target string) (err error) + type FileDetails struct + Checksum entities.Checksum + Size int64 + func GetFileDetails(filePath string, includeChecksums bool) (details *FileDetails, err error) + func GetFileDetailsFromReader(reader io.Reader, includeChecksums bool) (*FileDetails, error) + type ItemType string + const Any + const Dir + const File + const SymlinkFileContent