fix filesystem walk path
Signed-off-by: liuxu <liuxu623@gmail.com>
This commit is contained in:
parent
dee21c0394
commit
33ef537c0d
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue