<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-10-12 21:36 GMT+02:00 Max Leske <span dir="ltr">&lt;<a href="mailto:maxleske@gmail.com" target="_blank">maxleske@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi.<br>
<br>
Git creates it’s object files (the object database files) with permission 0444 (i.e. no write permissions). On OS X and Linux the VM is happy to delete those files but on Windows 7 the FilePlugin fails with a #primitiveFailed:.<br>
<br>
Before I dive into the code and start fixing stuff I wanted to know if this is a known issue / unfixable problem.<br></blockquote><div><br></div><div>Yes, I saw this already when working with git directories for the long path issue.<br></div><div>On windows, we&#39;ll have to remove a readonly  attribute if we want to delete read-only files. <br><br>Don&#39;t know how to fix this, silently in the vm if the plugin failed? Or return with an appropriate return code and<br></div><div>give the image a chance to ask the user and then call the delete method again with a flag &quot;do-delete-readonly-files&quot;<br></div><div>Or add a method to the plugin, to change the attributes and change add code in the image to provide a method that changes<br></div><div>readonly flags for all entries prior to calling deleteAll?<br><br></div><div><br><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<br>
Max</blockquote></div><br></div></div>