mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
Prevent overwriting files #33
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cfsmp3 on GitHub (Nov 4, 2014).
If at any point a check could be inserted to check whether a .bin file is being processed with -out=bin as an output setting, that would be great. As is, accidentally doing that results in deleting the source file (overwriting it with a blank file, more accurately) which is very bad! (And something I just did.)
@Akirato commented on GitHub (Mar 23, 2015):
Could you share a sample? I am not getting this error in a normal case.
Again, I don't know the source code yet. But I saw that a check is implemented when an
output file is created which is like one of the beginning steps.
Do you get an output file too?
I think a check can probably be implemented whenever a file is written or opened for writing.
@okisseloff commented on GitHub (Apr 7, 2015):
I have created a pull request https://github.com/CCExtractor/ccextractor/pull/149 for this case and my solution doesn't let user to make bin-to-bin and raw-to-raw extraction (or any other smth-to-smth). Are these extractions useless and mean that user was accidentally mistaken with arguments as they seem to me? If not, I will create another pull request where "out." will be added to the output filename if this happens.