scanner

package
v0.0.0-...-6079cd8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsolutePath

func AbsolutePath(path string) (string, error)

AbsolutePath converts a path (relative or absolute) into an absolute one. Supports '~' notation for $HOME directory of the current user.

func CheckDisallowed

func CheckDisallowed(folder string, disallowed []string, removefolder bool) bool

func CleanUpFolder

func CleanUpFolder(folder string, CleanupsizeMB int)

func CopyFile

func CopyFile(src, dst string, allowFileLink bool) (err error)

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 CreateFolderWithSubfolders

func CreateFolderWithSubfolders(path string, security uint32) error

func GetFileSize

func GetFileSize(file string) int64

func GetFilesAdded

func GetFilesAdded(files []string, listname string) []string

func GetFilesDir

func GetFilesDir(rootpath string, filetypes []string, filetypesNoRename []string, ignoredpaths []string) []string

func GetFilesGoDir

func GetFilesGoDir(rootpath string, filetypes []string, filetypesNoRename []string, ignoredpaths []string) []string

func GetFilesRemoved

func GetFilesRemoved(listname string) []string

func GetFilesSeriesAdded

func GetFilesSeriesAdded(files []string, listname string) []string

func GetFilesSeriesRemoved

func GetFilesSeriesRemoved(listname string) []string

func GetFolderSize

func GetFolderSize(rootpath string) int64

func MoveFileDrive

func MoveFileDrive(sourcePath, destPath string) error

func MoveFileDriveBuffer

func MoveFileDriveBuffer(sourcePath, destPath string) error

func MoveFileDriveReadWrite

func MoveFileDriveReadWrite(sourcePath, destPath string) error

func MoveFiles

func MoveFiles(files []string, target string, newname string, filetypes []string, filetypesNoRename []string) (bool, int)

func RemoveFile

func RemoveFile(file string) error

func RemoveFiles

func RemoveFiles(files []string, filetypes []string, filetypesNoRename []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL