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
8167f68a
Commit
8167f68a
authored
Jan 05, 2012
by
willmcgugan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes
parent
477e5112
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
fs/mountfs.py
+7
-4
No files found.
fs/mountfs.py
View file @
8167f68a
...
@@ -54,10 +54,13 @@ class DirMount(object):
...
@@ -54,10 +54,13 @@ class DirMount(object):
self
.
fs
=
fs
self
.
fs
=
fs
def
__str__
(
self
):
def
__str__
(
self
):
return
"Mount point: <
%
s,
%
s>"
%
(
self
.
path
,
self
.
fs
,)
return
"<DirMount
%
s,
%
s>"
%
(
self
.
path
,
self
.
fs
)
__repr__
=
__str__
def
__repr__
(
self
):
return
"<DirMount
%
s,
%
s>"
%
(
self
.
path
,
self
.
fs
)
def
__unicode__
(
self
):
def
__unicode__
(
self
):
return
u
nicode
(
str
(
self
)
)
return
u
"<DirMount
%
s,
%
s>"
%
(
self
.
path
,
self
.
fs
)
class
FileMount
(
object
):
class
FileMount
(
object
):
...
@@ -272,7 +275,6 @@ class MountFS(FS):
...
@@ -272,7 +275,6 @@ class MountFS(FS):
else
:
else
:
yield
mkpath
(
p
)
yield
mkpath
(
p
)
@synchronize
@synchronize
def
makedir
(
self
,
path
,
recursive
=
False
,
allow_recreate
=
False
):
def
makedir
(
self
,
path
,
recursive
=
False
,
allow_recreate
=
False
):
fs
,
_mount_path
,
delegate_path
=
self
.
_delegate
(
path
)
fs
,
_mount_path
,
delegate_path
=
self
.
_delegate
(
path
)
...
@@ -397,6 +399,7 @@ class MountFS(FS):
...
@@ -397,6 +399,7 @@ class MountFS(FS):
:param fs: A filesystem object to mount
:param fs: A filesystem object to mount
"""
"""
path
=
abspath
(
normpath
(
path
))
self
.
mount_tree
[
path
]
=
MountFS
.
DirMount
(
path
,
fs
)
self
.
mount_tree
[
path
]
=
MountFS
.
DirMount
(
path
,
fs
)
mount
=
mountdir
mount
=
mountdir
...
...
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