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
c223894c
Commit
c223894c
authored
Jan 05, 2011
by
rfkelly0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some broken/missing ilistdir implementations
parent
b202f48c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
fs/base.py
+1
-1
fs/contrib/davfs/xmlobj.py
+1
-1
fs/mountfs.py
+1
-1
fs/xattrs.py
+6
-0
No files found.
fs/base.py
View file @
c223894c
...
@@ -438,7 +438,7 @@ class FS(object):
...
@@ -438,7 +438,7 @@ class FS(object):
return
{}
return
{}
return
[(
p
,
getinfo
(
p
))
return
[(
p
,
getinfo
(
p
))
for
p
in
self
.
listdir
(
path
,
for
p
in
self
.
listdir
(
path
,
wildcard
=
wildcard
,
wildcard
=
wildcard
,
full
=
full
,
full
=
full
,
absolute
=
absolute
,
absolute
=
absolute
,
...
...
fs/contrib/davfs/xmlobj.py
View file @
c223894c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
fs.contrib.davfs.xmlobj: dexml model definitions for WebDAV
fs.contrib.davfs.xmlobj: dexml model definitions for WebDAV
This module defines the various XML elemen structures for WebDAV as a set
This module defines the various XML elemen
t
structures for WebDAV as a set
of dexml.Model subclasses.
of dexml.Model subclasses.
"""
"""
...
...
fs/mountfs.py
View file @
c223894c
...
@@ -226,7 +226,7 @@ class MountFS(FS):
...
@@ -226,7 +226,7 @@ class MountFS(FS):
if
fs
is
self
:
if
fs
is
self
:
paths
=
self
.
mount_tree
.
names
(
path
)
paths
=
self
.
mount_tree
.
names
(
path
)
for
path
in
self
.
_listdir_helper
(
path
,
wildcard
,
full
,
absolute
,
dirs_only
,
files_only
):
for
path
in
self
.
_listdir_helper
(
path
,
paths
,
wildcard
,
full
,
absolute
,
dirs_only
,
files_only
):
yield
path
yield
path
else
:
else
:
paths
=
fs
.
ilistdir
(
delegate_path
,
paths
=
fs
.
ilistdir
(
delegate_path
,
...
...
fs/xattrs.py
View file @
c223894c
...
@@ -149,6 +149,12 @@ class SimulateXAttr(WrapFS):
...
@@ -149,6 +149,12 @@ class SimulateXAttr(WrapFS):
entries
=
self
.
wrapped_fs
.
listdir
(
path
,
**
kwds
)
entries
=
self
.
wrapped_fs
.
listdir
(
path
,
**
kwds
)
return
[
e
for
e
in
entries
if
not
self
.
_is_attr_path
(
e
)]
return
[
e
for
e
in
entries
if
not
self
.
_is_attr_path
(
e
)]
def
ilistdir
(
self
,
path
=
""
,
**
kwds
):
"""Prevent .xattr from appearing in listings."""
for
e
in
self
.
wrapped_fs
.
ilistdir
(
path
,
**
kwds
):
if
not
self
.
_is_attr_path
(
e
):
yield
e
def
remove
(
self
,
path
):
def
remove
(
self
,
path
):
"""Remove .xattr when removing a file."""
"""Remove .xattr when removing a file."""
attr_file
=
self
.
_get_attr_path
(
path
,
isdir
=
False
)
attr_file
=
self
.
_get_attr_path
(
path
,
isdir
=
False
)
...
...
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