Skip to content

Commit

Permalink
made it so that filemanager cleans up after itself on upload...
Browse files Browse the repository at this point in the history
  • Loading branch information
lunamidori5 committed Nov 24, 2024
1 parent 023649d commit 0d6ca0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Webserver/Programs/File_manager/file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def main(args):
shutil.copy2(working_item, temp_working_item)

spinner.succeed(text=f"Moved {working_item} to {temp_working_item}")

spinner.start(text=f"Packing {temp_working_item}")
build_tar(temp_working_item)
spinner.succeed(text=f"Packed {temp_working_item}")
Expand All @@ -302,6 +302,8 @@ def main(args):
bytes_to_upload = f.read()

upload_to_midori_ai(bytes_to_upload)

os.rmdir(temp_workfolder)
else:
print("Please pack the files before uploading...")

Expand Down

0 comments on commit 0d6ca0f

Please sign in to comment.