from pathlib import Path from .entry import Entry class EmptyEntry(Entry): def __init__(self): super().__init__([], Path(), Path()) def __bool__(self): return False ENTRY_NONE = EmptyEntry() ENTRY_SKIP = EmptyEntry() class EntryDetector: def detect_entry(self, basepath: Path, rootpath: Path) -> Entry: raise NotImplementedError