mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-02 14:28:54 -06:00
fix: read catalog coverage under the database
This commit is contained in:
1 parent
b350c21329
commit
02c33be3b5
16 files changed
+129
-52
No files matched your search
@@ -0,0 +1,15 @@
|
||||
"""Where a database.json path lands on disk: under the folder that holds the BIOS tree."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def collection_root(bios_dir: Path) -> Path:
|
||||
"""The folder database paths (``bios/...``) are relative to: *bios_dir*'s parent."""
|
||||
return bios_dir.resolve().parent
|
||||
|
||||
|
||||
def on_disk(root: Path, path: str) -> Path:
|
||||
"""The file a database *path* names under *root*. An absolute path stays as written."""
|
||||
return root / path
|
||||
Reference in new issue
Block a user