JangJeewon / dokan

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

Office 2010 "temp" files not deleted #190

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Trying to implement dokan with a .NET C# implementation (3.0 version) and I am 
handling all operations into a database. TXT, DOCX files work perfectly but 
XLSX and PPTX keeps the "temp" files (usually ~\my excel.xlsx) in the hidden 
space.

The info class (DeleteOnClose) is false by default. Anyone have a solution?

Original issue reported on code.google.com by ras...@foged.org on 4 Nov 2010 at 1:42

GoogleCodeExporter commented 9 years ago
A little more details, I believe it is due to info.DeleteOnClose is ByVal not 
ByRef (persisted between threads). 

If I store the DokanContext and a custom action=delete in Context, I can handle 
the delete in the CloseFile operation. But still "DeleteOnClose" is False, 
allthough I set it to True in CreateFile.

Original comment by ras...@foged.org on 4 Nov 2010 at 2:54