Documentation ¶
Index ¶
- func AbsolutePath(path string) (string, error)
- func CheckDisallowed(folder string, disallowed []string, removefolder bool) bool
- func CleanUpFolder(folder string, CleanupsizeMB int)
- func CopyFile(src, dst string, allowFileLink bool) (err error)
- func CreateFolderWithSubfolders(path string, security uint32) error
- func GetFileSize(file string) int64
- func GetFilesAdded(files []string, listname string) []string
- func GetFilesDir(rootpath string, filetypes []string, filetypesNoRename []string, ...) []string
- func GetFilesGoDir(rootpath string, filetypes []string, filetypesNoRename []string, ...) []string
- func GetFilesRemoved(listname string) []string
- func GetFilesSeriesAdded(files []string, listname string) []string
- func GetFilesSeriesRemoved(listname string) []string
- func GetFolderSize(rootpath string) int64
- func MoveFileDrive(sourcePath, destPath string) error
- func MoveFileDriveBuffer(sourcePath, destPath string) error
- func MoveFileDriveReadWrite(sourcePath, destPath string) error
- func MoveFiles(files []string, target string, newname string, filetypes []string, ...) (bool, int)
- func RemoveFile(file string) error
- func RemoveFiles(files []string, filetypes []string, filetypesNoRename []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶
AbsolutePath converts a path (relative or absolute) into an absolute one. Supports '~' notation for $HOME directory of the current user.
func CheckDisallowed ¶
func CleanUpFolder ¶
func CopyFile ¶
CopyFile copies a file from src to dst. If src and dst files exist, and are the same, then return success. Otherwise, attempt to create a hard link between the two files. If that fails, copy the file contents from src to dst. Creates any missing directories. Supports '~' notation for $HOME directory of the current user.
func GetFileSize ¶
func GetFilesAdded ¶
func GetFilesDir ¶
func GetFilesGoDir ¶
func GetFilesRemoved ¶
func GetFilesSeriesAdded ¶
func GetFilesSeriesRemoved ¶
func GetFolderSize ¶
func MoveFileDrive ¶
func MoveFileDriveBuffer ¶
func MoveFileDriveReadWrite ¶
func RemoveFile ¶
func RemoveFiles ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.