Documentation
¶
Index ¶
- func ComputeSyncActions(sourceDirPath string, sourceFiles map[string]entity.FileMeta, ...) (actions []action.SyncAction, savings int64, err error)
- func FindDirectoryResultToCsv(dirPath string, excludedFiles set.Set[string], file *os.File) error
- func FindFilesFromDirectory(dirPath string, excludedFiles set.Set[string]) (files map[string]entity.FileMeta, totalSizeOfFiles int64, findFilesErr error)
- func FindOrphans(sourceFiles, destinationFiles map[string]entity.FileMeta) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeSyncActions ¶
func ComputeSyncActions(sourceDirPath string, sourceFiles map[string]entity.FileMeta, orphansAtSource []string, destinationDirPath string, destinationFiles map[string]entity.FileMeta, candidatesAtDestination []string, sourceCounter *int32, destinationCounter *int32, ) (actions []action.SyncAction, savings int64, err error)
ComputeSyncActions identifies the diff between source and destination directories that do not require actual file transfer. This is the core function of this tool.
func FindDirectoryResultToCsv ¶ added in v1.3.0
func FindFilesFromDirectory ¶ added in v1.3.0
func FindFilesFromDirectory(dirPath string, excludedFiles set.Set[string]) ( files map[string]entity.FileMeta, totalSizeOfFiles int64, findFilesErr error, )
FindFilesFromDirectory finds all regular files in a given directory (Very similar to `find` command on unix-like operating systems)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.