Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pyfs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pyfs
Commits
0e8921dc
Commit
0e8921dc
authored
Jun 18, 2010
by
rfkelly0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSX raises EPERM when calling remove() on a dir; change to ResourceInvalidError
parent
4e2303ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
fs/osfs/__init__.py
+4
-0
No files found.
fs/osfs/__init__.py
View file @
0e8921dc
...
@@ -155,6 +155,10 @@ class OSFS(OSFSXAttrMixin,OSFSWatchMixin,FS):
...
@@ -155,6 +155,10 @@ class OSFS(OSFSXAttrMixin,OSFSWatchMixin,FS):
# sometimes windows says this for attempts to remove a dir
# sometimes windows says this for attempts to remove a dir
if
os
.
path
.
isdir
(
sys_path
):
if
os
.
path
.
isdir
(
sys_path
):
raise
ResourceInvalidError
(
path
)
raise
ResourceInvalidError
(
path
)
if
e
.
errno
==
errno
.
EPERM
and
sys
.
platform
==
"darwin"
:
# sometimes OSX says this for attempts to remove a dir
if
os
.
path
.
isdir
(
sys_path
):
raise
ResourceInvalidError
(
path
)
raise
raise
@convert_os_errors
@convert_os_errors
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment