3 ms·
I would prefer it to not be the default; it's sometimes useful to keep temporary files in the event of a process crash, especially on a server that would then i
by TeMPOraL 7y ago
I would prefer it to not be the default; it's sometimes useful to keep temporary files in the event of a process crash, especially on a server that would then immediately restart said process. I had such a case very recently, and was thankful for the existing behavior of tmp files.
- skissane 7y agoRather than delete the file straight away, put it in a “trash can” or “recycle bin”. A background process deletes files from “trash can” at a later date. It could normally give them a grace period (e.g. 7 days, configurable) but the files could be deleted early if storage space is running low. The same feature could be used to provide undelete for non-temporary files too.
- JetSpiegel 7y agomktemp is enough for this.