mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 15:35:05 +02:00
Do not fail only empty courses
This commit is contained in:
parent
9ea03bda3e
commit
38d4f5b4c9
1 changed files with 2 additions and 0 deletions
|
|
@ -124,6 +124,8 @@ class Organizer(Location):
|
||||||
self._cleanup(self.path)
|
self._cleanup(self.path)
|
||||||
|
|
||||||
def _cleanup(self, start_dir: Path) -> None:
|
def _cleanup(self, start_dir: Path) -> None:
|
||||||
|
if not start_dir.exists():
|
||||||
|
return
|
||||||
paths: List[Path] = list(start_dir.iterdir())
|
paths: List[Path] = list(start_dir.iterdir())
|
||||||
|
|
||||||
# Recursively clean paths
|
# Recursively clean paths
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue