summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/mountfs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/mountfs.py b/fs/mountfs.py
index fce3a19..c7eabaf 100644
--- a/fs/mountfs.py
+++ b/fs/mountfs.py
@@ -246,6 +246,8 @@ class MountFS(FS):
fs, _mount_path, delegate_path = self._delegate(path)
if fs is None:
+ if path in ("/", ""):
+ return
raise ResourceNotFoundError(path)
if fs is self:
@@ -465,6 +467,8 @@ class MountFS(FS):
fs, _mount_path, delegate_path = self._delegate(path)
if fs is None:
+ if path in ("/", ""):
+ return {}
raise ResourceNotFoundError(path)
if fs is self:
@@ -499,6 +503,8 @@ class MountFS(FS):
path = normpath(path)
fs, _mount_path, delegate_path = self._delegate(path)
if fs is None:
+ if path in ("/", ""):
+ return default
raise ResourceNotFoundError(path)
if fs is self:
return default