dirsync

package module
v0.0.0-...-51d44bc Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2016 License: MIT Imports: 8 Imported by: 0

README

dirsync

Basic directory synchronization with golang. Recursively copies files and subdirectories over to target directory, deleting files not present in source path and preserving identical files without copying.

If two files have a matching name and size, checksums are compared to determine identicality.

Usage

Get it: go get github.com/Varjelus/dirsync

Import it: import github.com/Varjelus/dirsync

Use it

err := dirsync.Sync("/path/to/dir1", "/path/to/dir2"), handle error

Documentation

Index

Constants

View Source
const ErrNotADirectory = "Not a directory"

Errors

Variables

This section is empty.

Functions

func Sync

func Sync(src, dest string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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