We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c574f33 commit 103d500Copy full SHA for 103d500
addonmanager_installation_manifest.py
@@ -38,6 +38,8 @@ def most_recent_update(directory_path: str) -> datetime.datetime:
38
39
if not path.exists():
40
raise FileNotFoundError(f"Directory not found: {path}")
41
+ if not path.is_dir():
42
+ raise NotADirectoryError(f"Path is not a directory: {path}")
43
44
latest_time = datetime.datetime.fromtimestamp(0, tz=datetime.timezone.utc)
45
for file_path in path.rglob("*"):
0 commit comments