mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-08-12 18:42:43 +02:00
Do not fail only empty courses
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user