Skip to content

Commit

Permalink
Remove unnecessary shutil import
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Sep 16, 2024
1 parent d461cf3 commit f186acd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stgpytools/types/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ def mkdirp(self, mode: int = 0o777) -> None:
def rmdirs(self, missing_ok: bool = False, ignore_errors: bool = True) -> None:
"""Remove the dir path with its contents."""

from shutil import rmtree

try:
return rmtree(str(self.get_folder()), ignore_errors)
return shutil.rmtree(str(self.get_folder()), ignore_errors)
except FileNotFoundError:
if not missing_ok:
raise
Expand Down

0 comments on commit f186acd

Please sign in to comment.