mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
Fix error where bad path separators are used on linux causing file not found error
This commit is contained in:
parent
e72c87b4b6
commit
269ce00430
|
|
@ -73,7 +73,8 @@ print(f"Selected {len(target_file_paths)} files for {output_file_path}")
|
||||||
# Read our target files
|
# Read our target files
|
||||||
target_files = []
|
target_files = []
|
||||||
for target_path in target_file_paths:
|
for target_path in target_file_paths:
|
||||||
with open(f"{target_dir}/{target_path.strip()}", "rb") as file:
|
real_target_path = target_path.replace("\\", "/")
|
||||||
|
with open(f"{target_dir}/{real_target_path.strip()}", "rb") as file:
|
||||||
file_data = file.read()
|
file_data = file.read()
|
||||||
meta_data = FileMetaData(
|
meta_data = FileMetaData(
|
||||||
target_path,
|
target_path,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue