mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 07:25:04 +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)
|
||||
|
||||
def _cleanup(self, start_dir: Path) -> None:
|
||||
if not start_dir.exists():
|
||||
return
|
||||
paths: List[Path] = list(start_dir.iterdir())
|
||||
|
||||
# Recursively clean paths
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue