sync

package
v1.66.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 21 Imported by: 42

Documentation

Overview

Package sync is the implementation of sync/copy/move

Index

Constants

This section is empty.

Variables

View Source
var ErrorMaxDurationReached = errors.New("max transfer duration reached as set by --max-duration")

ErrorMaxDurationReached defines error when transfer duration is reached Used for checking on exit and matching to correct exit code.

View Source
var ErrorMaxDurationReachedFatal = fserrors.FatalError(ErrorMaxDurationReached)

ErrorMaxDurationReachedFatal is returned from when the max duration limit is reached.

Functions

func CopyDir

func CopyDir(ctx context.Context, fdst, fsrc fs.Fs, copyEmptySrcDirs bool) error

CopyDir copies fsrc into fdst

func MoveDir

func MoveDir(ctx context.Context, fdst, fsrc fs.Fs, deleteEmptySrcDirs bool, copyEmptySrcDirs bool) error

MoveDir moves fsrc into fdst

func Sync

func Sync(ctx context.Context, fdst, fsrc fs.Fs, copyEmptySrcDirs bool) error

Sync fsrc into fdst

Types

This section is empty.

Jump to

Keyboard shortcuts

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