Improve support for editing files inside R-O archives
Posted: 2012-04-14, 20:32 UTC
Consider the following situation:
1) we have a READ ONLY archive (say ZIP archive) containing text file(s)
2) enter into archive, select any file and press F4
3) file is being unpacked to TEMP dir (after confirming) and editor starts (notepad by default)
4) edit file, save it and close notepad
5) now TCMD displays message box: "The file xxx.txt has changed. Do you want to repack it into c:\test.zip?"
6) after pressing "Yes", TCMD displays message box: "Error: Cannot write c:\test.zip! Please remove the write protection!"
Now the only way to recover our edited file contents is to go manually to the TEMP directory and find a proper file.
So my suggestion is: use the solution already existing - as when overwriting an read-only file (when copying/moving): instead of displaying "Error: Cannot write c:\test.zip! Please remove the write protection!", display: "The file c:\test.zip is READ ONLY! Do you want to overwrite it anyway?".
Regards!
1) we have a READ ONLY archive (say ZIP archive) containing text file(s)
2) enter into archive, select any file and press F4
3) file is being unpacked to TEMP dir (after confirming) and editor starts (notepad by default)
4) edit file, save it and close notepad
5) now TCMD displays message box: "The file xxx.txt has changed. Do you want to repack it into c:\test.zip?"
6) after pressing "Yes", TCMD displays message box: "Error: Cannot write c:\test.zip! Please remove the write protection!"
Now the only way to recover our edited file contents is to go manually to the TEMP directory and find a proper file.
So my suggestion is: use the solution already existing - as when overwriting an read-only file (when copying/moving): instead of displaying "Error: Cannot write c:\test.zip! Please remove the write protection!", display: "The file c:\test.zip is READ ONLY! Do you want to overwrite it anyway?".
Regards!