mirror of https://github.com/perkeep/perkeep.git
localdisk: skip the 'packed' directory in enumerate, like 'cache'
Change-Id: I33bb39921d466a0c476c23d9da436273845c6628
This commit is contained in:
parent
79adb124b4
commit
d251a9b367
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue