fscommon

package
v1.87.0-cluster Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 5 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.

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 FsyncDir

func FsyncDir(dir string) error

FsyncDir fsyncs dir contents.

func FsyncFile

func FsyncFile(path string) error

FsyncFile fsyncs path contents and the parent directory contents.

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