Skip to content

Commit

Permalink
merge from devel
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-merzky committed Dec 10, 2024
2 parents ae93b74 + 04bd848 commit 7633a96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/radical/pilot/utils/staging_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ def rmdir(self, tgt, flags):

def copy(self, src, tgt, flags):

src = ru.Url(src)
tgt = ru.Url(tgt)

# # FIXME: why??
# flags = 0

Expand All @@ -154,7 +157,7 @@ def copy(self, src, tgt, flags):
fs = self._rsfs.Directory(str(tmp))
flags |= self._rsfs.CREATE_PARENTS

if os.path.isdir(src) or src.endswith('/'):
if os.path.isdir(src.path) or src.path.endswith('/'):
flags |= self._rsfs.RECURSIVE

# self._log.debug("copy %s 1 -> %s [%s]" % (src, tgt, flags))
Expand Down

0 comments on commit 7633a96

Please sign in to comment.