mirror of
https://github.com/offen/docker-volume-backup.git
synced 2025-12-24 01:31:12 +01:00
Directories aren't excluded from pruning logic (#548)
This commit is contained in:
@@ -96,7 +96,7 @@ func (b *localStorage) Prune(deadline time.Time, pruningPrefix string) (*storage
|
||||
)
|
||||
}
|
||||
|
||||
if fi.Mode()&os.ModeSymlink != os.ModeSymlink {
|
||||
if !fi.IsDir() && fi.Mode()&os.ModeSymlink != os.ModeSymlink {
|
||||
candidates = append(candidates, candidate)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user