-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is no more than a wrapper around `shutil.rmtree()`, but with an error handler that tries to set write permissions on error. This is a common-enough fix needed on the windows platform that it seems worth providing a helper for. Legacy DataLad also has one, but it's implementation seems to be very much stuck in Python 2 times.
- Loading branch information
Showing
3 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from shutil import rmtree | ||
|
||
import pytest | ||
|
||
from datalad_core.tests import rmtree | ||
|
||
from ..repo import Repo | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
__all__ = [ | ||
'call_git_addcommit', | ||
'rmtree', | ||
] | ||
|
||
from .utils import call_git_addcommit | ||
from .utils import ( | ||
call_git_addcommit, | ||
rmtree, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters