fspd icon indicating copy to clipboard operation
fspd copied to clipboard

tmp.bin file not cleared

Open suloku opened this issue 3 years ago • 0 comments

The script doesn't check for tmp.bin file's existence before uploading a file, so if a file named tmp.bin already exists, fspd will append the upload contents to tmp.bin and move the file afterwards to correct filename.

I found this after my client crashed mid-upload.

Proposed solution:

  • Check for the presence of tmp.bin before a file is uploaded, delete it since it shouldn't be there before uploading a file.
  • Maybe change the name to fspd.tmp to avoid conflicting since tmp.bin is too generic

suloku avatar Nov 26 '21 10:11 suloku