-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AnyPath.rmtree()
does not work with local paths
#383
Comments
@parviste We've got an open feature request to have a Would something like that work for you? Since |
I think having something like |
I'm using
cloudpathlib.AnyPath
to be able to fall back to a local filesystem for e.g. testing. However, it seems thatAnyPath.rmtree()
does not work correctly if the path points to the local filesystem. E.g.results in
It would be nice if
AnyPath
supportedrmtree()
. The workaround is to check if the path points to the local filesystem, and then usingshutil.rmtree()
instead in that case, but that complicates the code a bit.The text was updated successfully, but these errors were encountered: