dev.r5portal upload system unit test ok

This commit is contained in:
edo-neo 2024-10-23 09:45:57 +02:00
parent 61b7fc98a5
commit 7261f2d1e0

View File

@ -190,7 +190,8 @@ class ArchiveSynchronizer(Component):
return False
# Save the file to /tmp/
local_file_path = os.path.join("/tmp/", os.path.basename(specific_file_url))
project_tmp_path = "/home/edo-neo/PycharmProjects/st-ten-1/tmp"
local_file_path = os.path.join(project_tmp_path, os.path.basename(specific_file_url))
os.makedirs(os.path.dirname(local_file_path), exist_ok=True)
with open(local_file_path, "wb") as f: