Add HttpCrawler

This commit is contained in:
Joscha
2021-05-13 22:28:14 +02:00
parent 961f40f9a1
commit d565df27b3
4 changed files with 51 additions and 5 deletions

View File

@ -86,6 +86,9 @@ class OutputDirectory:
self._report = Report()
def register_reserved(self, path: PurePath):
self._report.mark_reserved(path)
def _mark(self, path: PurePath) -> None:
"""
May throw an OutputDirException
@ -100,7 +103,7 @@ class OutputDirectory:
msg = f"Collides with other file: {e.collides_with}"
raise OutputDirException(msg)
def _resolve(self, path: PurePath) -> Path:
def resolve(self, path: PurePath) -> Path:
"""
May throw an OutputDirException.
"""