gsync

package module
v0.0.0-...-d40efae Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

README

gsync

Nerfed rsync

Usage of gsync:
gsync [options] sourceDir destDir
  -v verbose
  -f try to chmod unwriteable destination
  -m XYZ write files/directories with octal mode XYZ

gsync recursively copies sourceDir to destDir, creating directories as necessary in the destination. By default the file modes are copied; -m overrides this. If the destination files are not writeable, -f will attempt to make them writeable (and then restore to the desired protection afterwards).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(srcDir, dstDir string, mode fs.FileMode, force, verbose bool) error

copyDir recursively copies all files from srcDir to dstDir, ignoring files that already exist in dstDir.

force causes an attempt to chmod a not-writeable destination file.

the default file mode is copied from the source, and the default directory mode is 0755. If mode != 0 , this overrides the default choices for file and directory modes.

Types

This section is empty.

Directories

Path Synopsis
cmd
gsync command

Jump to

Keyboard shortcuts

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