b2: on cleanup delete hide marker if it is the current file #604
This commit is contained in:
parent
8a66930bd7
commit
b4f2ada820
1 changed files with 6 additions and 1 deletions
7
b2/b2.go
7
b2/b2.go
|
@ -800,7 +800,12 @@ func (f *Fs) purge(oldOnly bool) error {
|
||||||
if !isDirectory {
|
if !isDirectory {
|
||||||
fs.Stats.Checking(remote)
|
fs.Stats.Checking(remote)
|
||||||
if oldOnly && last != remote {
|
if oldOnly && last != remote {
|
||||||
fs.Debug(remote, "Not deleting current version (id %q) %q", object.ID, object.Action)
|
if object.Action == "hide" {
|
||||||
|
fs.Debug(remote, "Deleting current version (id %q) as it is a hide marker", object.ID)
|
||||||
|
toBeDeleted <- object
|
||||||
|
} else {
|
||||||
|
fs.Debug(remote, "Not deleting current version (id %q) %q", object.ID, object.Action)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
fs.Debug(remote, "Deleting (id %q)", object.ID)
|
fs.Debug(remote, "Deleting (id %q)", object.ID)
|
||||||
toBeDeleted <- object
|
toBeDeleted <- object
|
||||||
|
|
Loading…
Add table
Reference in a new issue