mirror of
https://github.com/Abdess/retrobios.git
synced 2026-06-24 04:02:47 +00:00
fix: data directory path construction avoids double slash duplicates
This commit is contained in:
parent
8f1c7e47de
commit
a117b13b49
1 changed files with 6 additions and 1 deletions
|
|
@ -468,7 +468,12 @@ def generate_pack(
|
|||
print(f" WARNING: data directory '{ref_key}' not cached at {local_path} — run refresh_data_dirs.py")
|
||||
continue
|
||||
dd_dest = dd.get("destination", "")
|
||||
dd_prefix = f"{base_dest}/{dd_dest}" if base_dest else dd_dest
|
||||
if base_dest and dd_dest:
|
||||
dd_prefix = f"{base_dest}/{dd_dest}"
|
||||
elif base_dest:
|
||||
dd_prefix = base_dest
|
||||
else:
|
||||
dd_prefix = dd_dest
|
||||
for root, _dirs, filenames in os.walk(local_path):
|
||||
for fname in filenames:
|
||||
src = os.path.join(root, fname)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue