mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
fileserver.s3fs: avoid shadowing dir() built-in
This commit is contained in:
parent
3cf0cfb61d
commit
20de52366c
@ -500,9 +500,9 @@ def _find_dirs(metadata):
|
||||
for path in [k['Key'] for k in data]:
|
||||
prefix = ''
|
||||
for part in path.split('/')[:-1]:
|
||||
dir = prefix + part + '/'
|
||||
ret[bucket_name].add(dir)
|
||||
prefix = dir
|
||||
directory = prefix + part + '/'
|
||||
ret[bucket_name].add(directory)
|
||||
prefix = directory
|
||||
|
||||
return ret
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user