files

package
v1.104.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CrossDeviceModeOnly = false

CrossDeviceModeOnly is exposed for testing cross-device moving mode.

Functions

func Copy

func Copy(fs afero.Afero, source, destination string, permissions os.FileMode) error

Copy copies a source file to destination file and sets the given permissions.

func Move

func Move(fs afero.Afero, source, destination string) error

Move moves files on the same or across different devices.

Types

This section is empty.

Jump to

Keyboard shortcuts

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