mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Do not fail only empty courses
This commit is contained in:
parent
9ea03bda3e
commit
38d4f5b4c9
@ -124,6 +124,8 @@ class Organizer(Location):
|
||||
self._cleanup(self.path)
|
||||
|
||||
def _cleanup(self, start_dir: Path) -> None:
|
||||
if not start_dir.exists():
|
||||
return
|
||||
paths: List[Path] = list(start_dir.iterdir())
|
||||
|
||||
# Recursively clean paths
|
||||
|
Loading…
Reference in New Issue
Block a user