This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[BUG] Deleting temporary files may delete personal files
First and foremost, I want to make it clear I'm not trying to blame the app. To a large extent, this is my fault. But...

Turns out if you set the temp directory to let's say Desktop, or god forbid, the D drive, and then clear the temp files for a video conversion in Hybrid, well, the entire directory will be recursively deleted. Don't ask why, but I had set the temp directory to my external disk D, and now it is completely erased. Thankfully I have backups, but if I didn't, this would not be very fun. Could you maybe rework this feature to make it safer? Hopefully nobody else does what I did, but even if it happens to one more person, this can have devastating consequences.

Thanks a lot!
Hybrid only does clear the temp folder when the user asks it to do so.
Hybrid does create a popup that clearly states that it clears the temp folder.
clearing content of: G:\Temp
Only after that popup is removed by the user, it will delete stuff.
One could still kill Hybrid through the taskmgr up to that point and nothing happens.
By default, it only clears the properly processed files during job processing. (files of failed jobs, failed previews etc. still linger around, and yes some tools Hybrid uses do create sub folders)

=> I could add a prompt to ask the user whether he really wants to clear the temp folder, but aside from that, I'm not sure how I could make it saver.
I add a yes/no question to the popup,..
Clear folder check
Do you really want to delete the whole content of 'G:\Temp'?
&Yes &No

Cu Selur

Ps.: the lurid title was not unneeded.
PPs.: There's also the 'Config->Paths->Create sub-folder per job in temp path' which would limit Hybrid to deleting just the subfolder for that job.
Deleting unwanted files or directories could happen for a lot of reasons. And I think at least one time this happened to every Windows user.

Fortunately if one is able recognize the event immediately there is the possibility to recover all the deleted files.

Here a link to a survey of available tools for Windows: Top 10 Best Data Recovery Software in 2022
Sorry, I never intended the title to be lurid. Updated.

My recommendation would be to mark and recognize Hybrid's own temporary files and delete them only, without any way to delete an arbitrary folder. For example, you could store the temp files in a folder "_HYBRID_TEMP", or prefix folders with "HYBRID_TEMP_...", and only delete these folders which you're sure are Hybrid, not the user's personal files. Of course, this will likely be a major change in the way Hybrid works, so I do not expect it, but I think this is the proper solution. I think allowing Hybrid to delete an arbitrary folder specified by the user will always hold a risk like the one in this post.

Regarding recovery, sadly this barely works if you have a modern SSD with TRIM enabled.

@potejan: Assuming you are on Windows, I send you a link to a dev version I made.

Cu Selur

Forum Jump:

Users browsing this thread: 1 Guest(s)