nakijun / peazip

Automatically exported from code.google.com/p/peazip
2 stars 0 forks source link

Secure Delete does not work with Thumbs.db file present #272

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a directory 
2. Make sure thumbs.db file is present
3. Right-click on directory, select Peazip, Secure Delete

What is the expected output? What do you see instead?
The directory should be securely deleted. Instead, the directory is not deleted 
and is renamed.
Following is a copy of the output log.

---
File    Result  
C:\Users\Jamie and Kurt\Desktop\fsa\approved script.pdf file successfully 
deleted 
C:\Users\Jamie and Kurt\Desktop\fsa\denial letter.pdf   file successfully deleted   
C:\Users\Jamie and Kurt\Desktop\fsa\prescription-medco.pdf  file successfully 
deleted 
C:\Users\Jamie and Kurt\Desktop\fsa\receipt-walmart.pdf file successfully 
deleted 
C:\Users\Jamie and Kurt\Desktop\fsa\Thumbs.db   FILE NOT DELETED (not 
writeable/accessible/found) 
C:\Users\Jamie and Kurt\Desktop\fsa\    DIRECTORY NOT DELETED (not 
writeable/accessible/found) 

Secure deletion
1 items(s) sent to FAST secure deletion
Deleted 4 files and 0 directories
2 errors

What version of the product are you using? On what operating system?
Peazip 5.10 on Winodws 7 Pro 64-bit.

Please provide any additional information below.
Even though the log file says the file is "not writeable/accessible/found)", 
this is incorrect. The directory/file can easily be deleted via Windows by 
right-clicking on the directory and selecting Delete.

Original issue reported on code.google.com by binary...@gmail.com on 16 Sep 2013 at 5:38

GoogleCodeExporter commented 9 years ago
thunbs.db is a file owned by Windows (to store thumbnail of pictures). It is a 
"hidden, system" file

Moreover,
You can't "secure delete"
but you CAN simply delete

Secure delete has to modify the file, prohibited by the "system" file attribute

Original comment by MM.tsu...@gmail.com on 24 Sep 2013 at 8:41

GoogleCodeExporter commented 9 years ago
Hi, thank you for the feedback, I'll check ways to improve deletion of those 
files.
The problems in deleting thumbs.db (that Windows Vista and newer systems create 
by default only for shares) are mainly 1) the file is protected by hidden and 
system property flags, and 2) the file is often locked by Windows' file 
explorer process - that's why Windows' file explorer itself has usually no 
issues in deleting those files.

Original comment by giorgio.tani.software@gmail.com on 25 Sep 2013 at 8:41