Dr-Emann / applesauce

Transparent compression for Apple File System Compression (AFSC)
GNU General Public License v3.0
21 stars 0 forks source link

Enhancement Request: Delete temp files on SIGINT #23

Open akrabu opened 1 year ago

akrabu commented 1 year ago

I did notice when testing for the other issue I posted, that when you CTRL+C in the middle of an operation, Applesauce leaves temporary files where it was working. That in itself isn't too big of a deal - except the extension appears randomized, so you can't even search for .tmp to delete them. Would be nice if Applesauce cleaned up temp files when interrupted, or in the least used a global extension like .applesauce for easier cleanup.

Ps. thanks for this tool, I find it immensely useful! :)

Dr-Emann commented 10 months ago

Not quite a solution yet, but I just made a change which will try to use the system tempdir as long as it's on the same filesystem as your files, so it won't leave behind a bunch of random files intermixed with your usual files.