mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Deduplicate path names in crawler
Also rename files so they follow the restrictions for windows file names if we're on windows.
This commit is contained in:
@ -114,6 +114,9 @@ class Report:
|
||||
f.write("\n") # json.dump doesn't do this
|
||||
|
||||
def mark_reserved(self, path: PurePath) -> None:
|
||||
if path in self.marked:
|
||||
raise RuntimeError("Trying to reserve an already reserved file")
|
||||
|
||||
self.reserved_files.add(path)
|
||||
|
||||
def mark(self, path: PurePath) -> None:
|
||||
|
Reference in New Issue
Block a user