#1089 epub: .collapsed.index.xml not deleted (Windows)

output: ePub
open
XSL (1066)
5
2011-08-28
2010-01-11
Anonymous
No

On Windows the collapsed file .collapsed.index.xml is not deleted. If I remove :force => true in cleanup_files() I see this error message:

C:/ruby-1.9.1-p376-i386-mswin32/lib/ruby/1.9.1/fileutils.rb:1298:in `unlink': Permission denied - C:/.collapsed.index.xml (Errno::EACCES)

I guess a not yet closed Windows handle makes it impossible to delete the file while the script is running. I can delete the file without a problem when the script has exited. I also made the script wait 10 seconds (with sleep) before it tries to delete the file - same problem. A quick fix is probably to create the collapsed file in the temp directory where all other files are created anyway? Admittedly, not a real fix - but then users don't need to manually delete the file all the time in their working directory.

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-01-11
    • assigned_to: nobody --> abdelazer
     
  • Mauritz Jeanson

    Mauritz Jeanson - 2011-08-28
    • summary: .collapsed.index.xml not deleted (Windows) --> epub: .collapsed.index.xml not deleted (Windows)
     

Log in to post a comment.