uiop:delete-directory-tree fails on Win CCL

Bug #1522333 reported by Wimpie Nortje
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ASDF
New
Undecided
Unassigned

Bug Description

On CCL windows uiop:delete-directory-tree gives an error when the tree contains read-only files. Examples are git *.idx and *.pack files.

The reason is that CCL uses _wunlink() to delete the files and that fails with error -13 Permission denied.

The docstring for uiop:delete-directory-tree says
"Delete a directory including all its recursive contents, aka rm -rf."

To make the "rm -rf" functionality consistent, uiop needs to delete such trees on Windows without throwing errors.

Revision history for this message
Faré (fahree) wrote :

How would you do that on WinCCL ?

Revision history for this message
Wimpie Nortje (wnortje) wrote : Re: [Bug 1522333] Re: uiop:delete-directory-tree fails on Win CCL

I am using Windows command "attrib -r -h tree-root /s /d" just before
delete-directory-tree as a workaround.

WinCCL supports #_chmod but I don't know if that is the correct
function. I will post again if I find a better solution.

--
  Wimpie Nortje
  Strongroom - Encrypted Photo Backup
  https://strongroom.me

  Selective Share - Encryption-as-a-Service
  https://www.selectiveshare.com/

On Thu, Dec 3, 2015, at 16:14, Faré wrote:
> How would you do that on WinCCL ?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1522333
>
> Title:
> uiop:delete-directory-tree fails on Win CCL
>
> Status in ASDF:
> New
>
> Bug description:
> On CCL windows uiop:delete-directory-tree gives an error when the tree
> contains read-only files. Examples are git *.idx and *.pack files.
>
> The reason is that CCL uses _wunlink() to delete the files and that
> fails with error -13 Permission denied.
>
> The docstring for uiop:delete-directory-tree says
> "Delete a directory including all its recursive contents, aka rm -rf."
>
> To make the "rm -rf" functionality consistent, uiop needs to delete
> such trees on Windows without throwing errors.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/asdf/+bug/1522333/+subscriptions

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.