Compare commits
2 commits
develop
...
bugfix/dup
Author | SHA1 | Date | |
---|---|---|---|
488502b1dc | |||
e48d00a022 |
1 changed files with 4 additions and 0 deletions
|
@ -360,6 +360,8 @@ class Client(object):
|
||||||
os.makedirs(local_path)
|
os.makedirs(local_path)
|
||||||
|
|
||||||
for resource_name in self.list(urn.path()):
|
for resource_name in self.list(urn.path()):
|
||||||
|
if urn.path().endswith(resource_name):
|
||||||
|
continue
|
||||||
_remote_path = "{parent}{name}".format(parent=urn.path(), name=resource_name)
|
_remote_path = "{parent}{name}".format(parent=urn.path(), name=resource_name)
|
||||||
_local_path = os.path.join(local_path, resource_name)
|
_local_path = os.path.join(local_path, resource_name)
|
||||||
self.download(local_path=_local_path, remote_path=_remote_path, progress=progress)
|
self.download(local_path=_local_path, remote_path=_remote_path, progress=progress)
|
||||||
|
@ -713,6 +715,8 @@ class Client(object):
|
||||||
remote_resource_names = prune(paths, expression)
|
remote_resource_names = prune(paths, expression)
|
||||||
|
|
||||||
for remote_resource_name in remote_resource_names:
|
for remote_resource_name in remote_resource_names:
|
||||||
|
if remote_resource_name == "":
|
||||||
|
continue
|
||||||
local_path = os.path.join(local_directory, remote_resource_name)
|
local_path = os.path.join(local_directory, remote_resource_name)
|
||||||
remote_path = "{remote_directory}{resource_name}".format(remote_directory=urn.path(), resource_name=remote_resource_name)
|
remote_path = "{remote_directory}{resource_name}".format(remote_directory=urn.path(), resource_name=remote_resource_name)
|
||||||
remote_urn = Urn(remote_path)
|
remote_urn = Urn(remote_path)
|
||||||
|
|
Loading…
Add table
Reference in a new issue