mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-12 16:26:37 +00:00
This commit is contained in:
parent
fc2c46e82f
commit
88599bc154
@ -66,7 +66,6 @@ var (
|
|||||||
errDirPrefix = "directory has been deleted on a remote device but "
|
errDirPrefix = "directory has been deleted on a remote device but "
|
||||||
errDirHasToBeScanned = errors.New(errDirPrefix + "contains changed files, scheduling scan")
|
errDirHasToBeScanned = errors.New(errDirPrefix + "contains changed files, scheduling scan")
|
||||||
errDirHasIgnored = errors.New(errDirPrefix + "contains ignored files (see ignore documentation for (?d) prefix)")
|
errDirHasIgnored = errors.New(errDirPrefix + "contains ignored files (see ignore documentation for (?d) prefix)")
|
||||||
errDirHasReceiveOnlyChanged = errors.New(errDirPrefix + "contains locally changed files")
|
|
||||||
errDirNotEmpty = errors.New(errDirPrefix + "is not empty; the contents are probably ignored on that remote device, but not locally")
|
errDirNotEmpty = errors.New(errDirPrefix + "is not empty; the contents are probably ignored on that remote device, but not locally")
|
||||||
errNotAvailable = errors.New("no connected device has the required version of this file")
|
errNotAvailable = errors.New("no connected device has the required version of this file")
|
||||||
errModified = errors.New("file modified but not rescanned; will try again later")
|
errModified = errors.New("file modified but not rescanned; will try again later")
|
||||||
@ -1894,7 +1893,10 @@ func (f *sendReceiveFolder) deleteDirOnDisk(dir string, snap *db.Snapshot, scanC
|
|||||||
return errDirHasIgnored
|
return errDirHasIgnored
|
||||||
}
|
}
|
||||||
if hasReceiveOnlyChanged {
|
if hasReceiveOnlyChanged {
|
||||||
return errDirHasReceiveOnlyChanged
|
// Pretend we deleted the directory. It will be resurrected as a
|
||||||
|
// receive-only changed item on scan.
|
||||||
|
scanChan <- dir
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
if hasKnown {
|
if hasKnown {
|
||||||
return errDirNotEmpty
|
return errDirNotEmpty
|
||||||
|
Loading…
Reference in New Issue
Block a user