Switch to using index instead of _index
This commit is contained in:
parent
0b3025b878
commit
abbef64bbc
1 changed files with 2 additions and 2 deletions
|
|
@ -90,8 +90,8 @@ def get_content_index_name_from_path(path: Path) -> str:
|
||||||
"""Return the name of the index file for a directory."""
|
"""Return the name of the index file for a directory."""
|
||||||
# TODO: improve handling and mimetype logic
|
# TODO: improve handling and mimetype logic
|
||||||
if not path.suffix:
|
if not path.suffix:
|
||||||
return '_index.dat'
|
return 'index.dat'
|
||||||
return f'_index{path.suffix}'
|
return f'index{path.suffix}'
|
||||||
|
|
||||||
def get_content_path(path: str | Path) -> Path:
|
def get_content_path(path: str | Path) -> Path:
|
||||||
"""Return the path to the content file for a directory or file"""
|
"""Return the path to the content file for a directory or file"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue