From 27536ef5e9439f5a2f0e240191c39d1d34ee6441 Mon Sep 17 00:00:00 2001 From: Andre Merzky Date: Tue, 10 Dec 2024 11:53:59 +0100 Subject: [PATCH] ensure url type --- src/radical/pilot/utils/staging_helper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/radical/pilot/utils/staging_helper.py b/src/radical/pilot/utils/staging_helper.py index 1311c1913..5773c9962 100644 --- a/src/radical/pilot/utils/staging_helper.py +++ b/src/radical/pilot/utils/staging_helper.py @@ -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 @@ -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))