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
81ef91a9
Commit
81ef91a9
authored
Jan 16, 2012
by
willmcgugan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added sqlitefs to fs.contrib
parent
d1849210
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
3 deletions
+23
-3
fs/commands/fsls.py
+1
-2
fs/contrib/sqlitefs.py
+0
-0
fs/osfs/__init__.py
+3
-0
fs/tests/test_sqlitefs.py
+18
-0
fs/tests/test_wrapfs.py
+1
-1
No files found.
fs/commands/fsls.py
View file @
81ef91a9
...
...
@@ -133,8 +133,7 @@ List contents of [PATH]"""
for
line
,
path
in
zip
(
lines
,
column
):
line
.
append
(
path
)
return
'
\n
'
.
join
(
u' '
.
join
(
line
)
for
line
in
lines
)
if
options
.
long
:
for
path
in
paths
:
if
path
in
dirs
:
...
...
fs/contrib/sqlitefs.py
0 → 100644
View file @
81ef91a9
This diff is collapsed.
Click to expand it.
fs/osfs/__init__.py
View file @
81ef91a9
...
...
@@ -135,6 +135,9 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS):
def
__str__
(
self
):
return
"<OSFS:
%
s>"
%
self
.
root_path
def
__repr__
(
self
):
return
"<OSFS:
%
r>"
%
self
.
root_path
def
__unicode__
(
self
):
return
u"<OSFS:
%
s>"
%
self
.
root_path
...
...
fs/tests/test_sqlitefs.py
0 → 100644
View file @
81ef91a9
try
:
from
fs.contrib.sqlitefs
import
SqliteFS
except
ImportError
:
SqliteFS
=
None
from
fs.tests
import
FSTestCases
import
unittest
import
os
if
SqliteFS
:
class
TestSqliteFS
(
unittest
.
TestCase
,
FSTestCases
):
def
setUp
(
self
):
self
.
fs
=
SqliteFS
(
"sqlitefs.db"
)
def
tearDown
(
self
):
os
.
remove
(
'sqlitefs.db'
)
\ No newline at end of file
fs/tests/test_wrapfs.py
View file @
81ef91a9
...
...
@@ -22,7 +22,7 @@ from six import PY3, b
class
TestWrapFS
(
unittest
.
TestCase
,
FSTestCases
,
ThreadingTestCases
):
__test__
=
False
#
__test__ = False
def
setUp
(
self
):
self
.
temp_dir
=
tempfile
.
mkdtemp
(
u"fstest"
)
...
...
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