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
dc7c650e
Commit
dc7c650e
authored
Sep 06, 2008
by
willmcgugan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small changes
parent
4f40e842
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
fs/__init__.py
+4
-0
fs/fs.py
+2
-1
No files found.
fs/__init__.py
View file @
dc7c650e
from
fs
import
*
from
helpers
import
*
__all__
=
[
'browserwin'
,
'memoryfs'
,
'mountfs'
,
'multifs'
,
'osfs'
,
'utils'
,
'zipfs'
]
\ No newline at end of file
fs/fs.py
View file @
dc7c650e
...
...
@@ -184,7 +184,7 @@ def print_fs(fs, path="/", max_levels=5, indent=' '*2):
print_dir
(
fs
,
pathjoin
(
path
,
item
),
level
+
1
)
if
max_levels
is
not
None
:
if
level
>=
max_levels
:
print
indent
*
(
level
+
1
)
+
"
[...]
"
print
indent
*
(
level
+
1
)
+
"
...
"
else
:
print
indent
*
level
+
'
%
s'
%
item
print_dir
(
fs
,
path
,
0
)
...
...
@@ -651,6 +651,7 @@ if __name__ == "__main__":
fs1
=
osfs
.
OSFS
(
'~/'
)
fs2
=
fs1
.
opendir
(
"projects"
)
.
opendir
(
'prettycharts'
)
print_fs
(
fs2
)
#browsewin.browse(fs1)
...
...
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