fscommon

package
v1.91.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 17

Documentation

Index

Constants

View Source
const BackupCompleteFilename = "backup_complete.ignore"

BackupCompleteFilename is a filename, which is created in the destination fs when backup is complete.

View Source
const BackupMetadataFilename = "backup_metadata.ignore"

BackupMetadataFilename is a filename, which contains metadata for the backup.

Variables

This section is empty.

Functions

func AppendFiles

func AppendFiles(dst []string, dir string) ([]string, error)

AppendFiles appends all the files from dir to dst.

All the appended files will have dir prefix.

func IgnorePath added in v1.32.1

func IgnorePath(path string) bool

IgnorePath returns true if the given path must be ignored.

func RemoveEmptyDirs

func RemoveEmptyDirs(dir string) error

RemoveEmptyDirs recursively removes empty directories under the given dir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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