Skip to content

Commit

Permalink
implicit mkdir on local agent staging
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-merzky committed Apr 10, 2024
1 parent 659811c commit b74bed2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/radical/pilot/agent/staging_input/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def _handle_task(self, task, actionables):

if action == rpc.COPY:
try:
ru.rec_makedir(os.path.dirname(tgt.path))
shutil.copytree(src.path, tgt.path)
except OSError as exc:
if exc.errno == errno.ENOTDIR:
Expand Down
1 change: 1 addition & 0 deletions src/radical/pilot/agent/staging_output/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ def _handle_task_staging(self, task, actionables):

if action == rpc.COPY:
try:
ru.rec_makedir(os.path.dirname(tgt.path))
shutil.copytree(src.path, tgt.path)
except OSError as exc:
if exc.errno == errno.ENOTDIR:
Expand Down

0 comments on commit b74bed2

Please sign in to comment.