Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidion committed Jan 14, 2018
1 parent ea459d7 commit a60dc3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xphyle/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,9 @@ def __contains__(self, path: PathLike) -> bool:
def close(self) -> None:
"""Delete the temporary directory and all files/subdirectories within.
"""
# First need to make all paths removable
if not self.exists:
return
# First need to make all paths removable
for path in self.paths.values():
path.set_permissions('rwx', True)
shutil.rmtree(str(self.absolute_path))
Expand Down

0 comments on commit a60dc3d

Please sign in to comment.