fix filesystem walk path

Signed-off-by: liuxu <liuxu623@gmail.com>
This commit is contained in:
liuxu 2019-12-01 00:07:50 +08:00
parent dee21c0394
commit 33ef537c0d

View file

@ -292,7 +292,7 @@ func (d *driver) URLFor(ctx context.Context, path string, options map[string]int
// Walk traverses a filesystem defined within driver, starting
// from the given path, calling f on each file
func (d *driver) Walk(ctx context.Context, path string, f storagedriver.WalkFn) error {
return storagedriver.WalkFallback(ctx, d, path, f)
return storagedriver.WalkFallback(ctx, d, d.fullPath(path), f)
}
// fullPath returns the absolute path of a key within the Driver's storage.