Skip to content

Commit 589f76f

Browse files
committed
move log file instead of copying
1 parent 9731e16 commit 589f76f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwltool/provenance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,8 +1021,8 @@ def write_log(self, log_path): # type: (Text) -> None
10211021
self.folder, SNAPSHOT, os.path.basename(log_path))
10221022
while os.path.exists(dst_path):
10231023
dst_path = dst_path + "_{}".format(uuid.uuid4())
1024-
shutil.copy(log_path, dst_path)
1025-
when = datetime.datetime.fromtimestamp(os.path.getmtime(log_path))
1024+
shutil.move(log_path, dst_path)
1025+
when = datetime.datetime.fromtimestamp(os.path.getmtime(dst_path))
10261026
self.add_tagfile(dst_path, when)
10271027

10281028
def _finalize(self): # type: () -> None

0 commit comments

Comments
 (0)