Skip to content

Commit

Permalink
More error-prone shutil.move-ing of job files
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-S-Rosen authored Dec 18, 2023
1 parent 9a820be commit a5308cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quacc/runners/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def calc_cleanup(tmpdir: Path, job_results_dir: Path) -> None:

# Move files from tmpdir to job_results_dir
for file_name in os.listdir(tmpdir):
if Path(job_results_dir / file_name).exists():
if Path(job_results_dir / file_name).is_dir():
remove(job_results_dir / file_name)
move(tmpdir / file_name, job_results_dir / file_name)

Expand Down

0 comments on commit a5308cc

Please sign in to comment.