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
38ab08b1
Commit
38ab08b1
authored
Jul 17, 2009
by
rfkelly0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dont raise ResourceNotFoundError in isdir()/isfile(), they should return False
parent
992d3c41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
fs/mountfs.py
+2
-4
No files found.
fs/mountfs.py
View file @
38ab08b1
...
@@ -66,8 +66,7 @@ class MountFS(FS):
...
@@ -66,8 +66,7 @@ class MountFS(FS):
def
isdir
(
self
,
path
):
def
isdir
(
self
,
path
):
fs
,
mount_path
,
delegate_path
=
self
.
_delegate
(
path
)
fs
,
mount_path
,
delegate_path
=
self
.
_delegate
(
path
)
if
fs
is
None
:
if
fs
is
None
:
raise
ResourceNotFoundError
(
path
)
return
False
if
fs
is
self
:
if
fs
is
self
:
object
=
self
.
mount_tree
.
get
(
path
,
None
)
object
=
self
.
mount_tree
.
get
(
path
,
None
)
return
isinstance
(
object
,
dict
)
return
isinstance
(
object
,
dict
)
...
@@ -78,8 +77,7 @@ class MountFS(FS):
...
@@ -78,8 +77,7 @@ class MountFS(FS):
def
isfile
(
self
,
path
):
def
isfile
(
self
,
path
):
fs
,
mount_path
,
delegate_path
=
self
.
_delegate
(
path
)
fs
,
mount_path
,
delegate_path
=
self
.
_delegate
(
path
)
if
fs
is
None
:
if
fs
is
None
:
return
ResourceNotFoundError
(
path
)
return
False
if
fs
is
self
:
if
fs
is
self
:
object
=
self
.
mount_tree
.
get
(
path
,
None
)
object
=
self
.
mount_tree
.
get
(
path
,
None
)
return
type
(
object
)
is
MountFS
.
FileMount
return
type
(
object
)
is
MountFS
.
FileMount
...
...
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