Versions in this module Expand all Collapse all v1 v1.0.1 Mar 21, 2022 Changes in this version + var ErrPrimaryFileIsNull = errors.New("replication: primary file is null") + func Sync(option *UtilsSync, primary vfs.Filesystem, secondary ...vfs.Filesystem) error + type ReplicationFS struct + func NewReplication(primary vfs.Filesystem, secondary ...vfs.Filesystem) *ReplicationFS + func (ctx *ReplicationFS) Lstat(name string) (fs.FileInfo, error) + func (ctx *ReplicationFS) Mkdir(name string, perm os.FileMode) error + func (ctx *ReplicationFS) Open(name string) (vfs.File, error) + func (ctx *ReplicationFS) OpenFile(name string, flag int, perm os.FileMode) (vfs.File, error) + func (ctx *ReplicationFS) PathSeparator() uint8 + func (ctx *ReplicationFS) RReadDir(path string) ([]fs.FileInfo, [][]fs.FileInfo, error) + func (ctx *ReplicationFS) ReadDir(path string) ([]fs.FileInfo, error) + func (ctx *ReplicationFS) Remove(name string) error + func (ctx *ReplicationFS) Rename(oldpath string, newpath string) error + func (ctx *ReplicationFS) Stat(name string) (fs.FileInfo, error) + func (ctx *ReplicationFS) Symlink(oldname, newname string) error + type UtilsSync struct + DeleteNotExistingFiles bool + ReplaceDifferencesFiles bool