smbrsync

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

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

Go to latest
Published: Nov 21, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const PathSeparator = '\\'

Windows path separator

Variables

This section is empty.

Functions

This section is empty.

Types

type SmbRsync

type SmbRsync struct {
	// contains filtered or unexported fields
}

func New

func New(src *SmbRsyncShare, dst *SmbRsyncShare, filters []string) (*SmbRsync, error)

func (*SmbRsync) Sync

func (sync *SmbRsync) Sync() (*SmbRsyncResult, error)

Performs a sync of two folders on 2 shares

type SmbRsyncResult

type SmbRsyncResult struct {
	Copied   []string
	Skipped  []string
	Excluded []string
	Mismatch []string
	Deleted  []string
}

type SmbRsyncShare

type SmbRsyncShare struct {
	Share    *smb2.Share
	BasePath string
}

Jump to

Keyboard shortcuts

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