Versions in this module Expand all Collapse all v1 v1.69.1 Feb 15, 2025 Changes in this version + const DefaultCheckFilename + const DefaultMaxDelete + const ListingHeader + var Colors bool + var ConflictLoserList = Opt.ConflictLoser.Help() + var ConflictResolveList = Opt.ConflictResolve.Help() + var DefaultWorkdir = filepath.Join(config.GetCacheDir(), "bisync") + var ErrBisyncAborted = errors.New("bisync aborted") + var TZ = time.UTC + func Bisync(ctx context.Context, fs1, fs2 fs.Fs, optArg *Options) (err error) + func CheckFn(ctx context.Context, dst, src fs.Object) (differ bool, noHash bool, err error) + func Color(style string, s string) string + func Concat[S ~[]E, E any](ss ...S) S + func CryptCheckFn(ctx context.Context, dst, src fs.Object) (differ bool, noHash bool, err error) + func DownloadCheckFn(ctx context.Context, a, b fs.Object) (differ bool, noHash bool, err error) + func FsPathIfAny(x fs.DirEntry) string + func ID(o fs.Object) string + func ReverseCryptCheckFn(ctx context.Context, dst, src fs.Object) (differ bool, noHash bool, err error) + func SuffixName(ctx context.Context, remote, suffix string) string + func WhichCheck(ctx context.Context, opt *operations.CheckOpt) *operations.CheckOpt + func WhichEqual(ctx context.Context, src, dst fs.Object, Fsrc, Fdst fs.Fs) bool + func WriteResults(ctx context.Context, sigil operations.Sigil, src, dst fs.DirEntry, err error) + type CheckSyncMode int + const CheckSyncFalse + const CheckSyncOnly + const CheckSyncTrue + func (x *CheckSyncMode) Set(s string) error + func (x *CheckSyncMode) Type() string + func (x CheckSyncMode) String() string + type CompareOpt = struct + Checksum bool + DownloadHash bool + HashType1 hash.Type + HashType2 hash.Type + Modtime bool + NoSlowHash bool + Size bool + SlowHashDetected bool + SlowHashSyncOnly bool + type ConflictLoserAction = fs.Enum[conflictLoserChoices] + const ConflictLoserDelete + const ConflictLoserNumber + const ConflictLoserPathname + const ConflictLoserSkip + type Options struct + BackupDir1 string + BackupDir2 string + CheckAccess bool + CheckFilename string + CheckSync CheckSyncMode + Compare CompareOpt + CompareFlag string + ConflictLoser ConflictLoserAction + ConflictResolve Prefer + ConflictSuffix1 string + ConflictSuffix2 string + ConflictSuffixFlag string + CreateEmptySrcDirs bool + DebugName string + DryRun bool + FiltersFile string + Force bool + IgnoreListingChecksum bool + MaxDelete int + MaxLock time.Duration + NoCleanup bool + OrigBackupDir string + Recover bool + RemoveEmptyDirs bool + Resilient bool + Resync bool + ResyncMode Prefer + SaveQueues bool + TestFn TestFunc + Workdir string + var Opt Options + type Prefer = fs.Enum[preferChoices] + const PreferLarger + const PreferNewer + const PreferNone + const PreferOlder + const PreferPath1 + const PreferPath2 + const PreferSmaller + type Results struct + AltName string + Dst string + Err error + Flags string + Hash string + IsDst bool + IsSrc bool + IsWinner bool + Modtime time.Time + Name string + Origin string + Sigil operations.Sigil + Size int64 + Src string + Winner operations.Winner + func ReadResults(results io.Reader) []Results + type ResultsSlice []Results + type TestFunc func()