21 lines
373 B
Python
21 lines
373 B
Python
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
|