MCPcopy Index your code
hub / github.com/rclone/rclone / replaceCurrentListings

Method replaceCurrentListings

cmd/bisync/listing.go:377–380  ·  view source on GitHub ↗

replaceCurrentListings saves both ".lst-new" listings as ".lst"

()

Source from the content-addressed store, hash-verified

375
376// replaceCurrentListings saves both ".lst-new" listings as ".lst"
377func (b *bisyncRun) replaceCurrentListings() {
378 b.handleErr(b.newListing1, "error replacing Path1 listing", bilib.CopyFileIfExists(b.newListing1, b.listing1), true, true)
379 b.handleErr(b.newListing2, "error replacing Path2 listing", bilib.CopyFileIfExists(b.newListing2, b.listing2), true, true)
380}
381
382// revertToOldListings reverts to the most recent successful listing
383func (b *bisyncRun) revertToOldListings() {

Callers 2

runLockedMethod · 0.95
resyncMethod · 0.95

Calls 2

handleErrMethod · 0.95
CopyFileIfExistsFunction · 0.92

Tested by

no test coverage detected