gui, lib/db: Correct space accounting of symlinks, for "out of sync" status
This commit is contained in:
@@ -73,7 +73,7 @@ func (s *sizeTracker) addFile(f FileIntf) {
|
||||
switch {
|
||||
case f.IsDeleted():
|
||||
s.Deleted++
|
||||
case f.IsDirectory():
|
||||
case f.IsDirectory() && !f.IsSymlink():
|
||||
s.Directories++
|
||||
case f.IsSymlink():
|
||||
s.Symlinks++
|
||||
@@ -93,7 +93,7 @@ func (s *sizeTracker) removeFile(f FileIntf) {
|
||||
switch {
|
||||
case f.IsDeleted():
|
||||
s.Deleted--
|
||||
case f.IsDirectory():
|
||||
case f.IsDirectory() && !f.IsSymlink():
|
||||
s.Directories--
|
||||
case f.IsSymlink():
|
||||
s.Symlinks--
|
||||
|
||||
Reference in New Issue
Block a user