projects
/
invirt/packages/python-routefs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
It's not a _real_ pyhesiodfs if it's not accessible to everyone else.
[invirt/packages/python-routefs.git]
/
routefs
/
__init__.py
diff --git
a/routefs/__init__.py
b/routefs/__init__.py
index
9e2c6cc
..
5137256
100644
(file)
--- a/
routefs/__init__.py
+++ b/
routefs/__init__.py
@@
-86,6
+86,10
@@
class RouteFS(fuse.Fuse):
return
controller = match.pop('controller')
result = getattr(self, controller)(**match)
+ if type(result) is str:
+ result = File(result)
+ if type(result) is list:
+ result = Directory(result)
return result
def readdir(self, path, offset):