localdisk: skip the 'packed' directory in enumerate, like 'cache'

Change-Id: I33bb39921d466a0c476c23d9da436273845c6628
This commit is contained in:
Brad Fitzpatrick 2015-01-19 14:28:28 -08:00
parent 79adb124b4
commit d251a9b367
1 changed files with 4 additions and 6 deletions

View File

@ -184,12 +184,10 @@ func (ds *DiskStorage) EnumerateBlobs(ctx *context.Context, dest chan<- blob.Siz
func skipDir(name string) bool {
// The partition directory is old. (removed from codebase, but
// likely still on disk for some people)
// the "cache" directory is just a hack: it's used
// by the serverconfig/genconfig code, as a default
// location for most users to put their thumbnail
// cache. For now we just also skip it here.
return name == "partition" || name == "cache"
// likely still on disk for some people) the "cache" and
// "packed" directories are used by the serverconfig/genconfig
// code, as a default location for most users.
return name == "partition" || name == "cache" || name == "packed"
}
func isShardDir(name string) bool {