Switch to using index instead of _index

This commit is contained in:
Andrew Mulbrook 2026-03-26 19:02:20 -05:00
parent 0b3025b878
commit abbef64bbc

View file

@ -90,8 +90,8 @@ def get_content_index_name_from_path(path: Path) -> str:
"""Return the name of the index file for a directory."""
# TODO: improve handling and mimetype logic
if not path.suffix:
return '_index.dat'
return f'_index{path.suffix}'
return 'index.dat'
return f'index{path.suffix}'
def get_content_path(path: str | Path) -> Path:
"""Return the path to the content file for a directory or file"""