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
69ab86f7
Commit
69ab86f7
authored
Mar 07, 2011
by
willmcgugan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added "thread_safe" meta value
parent
ca009f83
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
28 additions
and
20 deletions
+28
-20
fs/base.py
+2
-1
fs/ftpfs.py
+2
-1
fs/memoryfs.py
+11
-10
fs/osfs/__init__.py
+2
-1
fs/rpcfs.py
+3
-3
fs/s3fs.py
+2
-1
fs/sftpfs.py
+2
-1
fs/tempfs.py
+2
-1
fs/zipfs.py
+2
-1
No files found.
fs/base.py
View file @
69ab86f7
...
...
@@ -178,7 +178,7 @@ class FS(object):
"""
pass
# Depr
i
cating cache_hint in favour of no underscore version, for consistency
# Depr
e
cating cache_hint in favour of no underscore version, for consistency
cache_hint
=
cachehint
def
close
(
self
):
...
...
@@ -225,6 +225,7 @@ class FS(object):
following are common:
* *read_only* True if the file system cannot be modified
* *thread_safe* True if the implementation is thread safe
* *network* True if the file system requires network access
* *unicode_paths* True if the file system supports unicode paths
* *case_insensitive_paths* True if the file system ignores the case of paths
...
...
fs/ftpfs.py
View file @
69ab86f7
...
...
@@ -802,7 +802,8 @@ class _DirCache(dict):
class
FTPFS
(
FS
):
_meta
=
{
'network'
:
True
,
_meta
=
{
'thread_safe'
:
True
,
'network'
:
True
,
'virtual'
:
False
,
'read_only'
:
False
,
'unicode_paths'
:
True
,
...
...
fs/memoryfs.py
View file @
69ab86f7
...
...
@@ -235,16 +235,17 @@ class MemoryFS(FS):
"""
_meta
=
{
'network'
:
False
,
'virtual'
:
False
,
'read_only'
:
False
,
'unicode_paths'
:
True
,
'case_insensitive_paths'
:
False
,
'atomic.move'
:
False
,
'atomic.copy'
:
False
,
'atomic.makedir'
:
True
,
'atomic.rename'
:
True
,
'atomic.setcontents'
:
False
,
_meta
=
{
'thread_safe'
:
True
,
'network'
:
False
,
'virtual'
:
False
,
'read_only'
:
False
,
'unicode_paths'
:
True
,
'case_insensitive_paths'
:
False
,
'atomic.move'
:
False
,
'atomic.copy'
:
False
,
'atomic.makedir'
:
True
,
'atomic.rename'
:
True
,
'atomic.setcontents'
:
False
,
}
def
_make_dir_entry
(
self
,
*
args
,
**
kwargs
):
...
...
fs/osfs/__init__.py
View file @
69ab86f7
...
...
@@ -74,7 +74,8 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS):
methods in the os and os.path modules.
"""
_meta
=
{
'network'
:
False
,
_meta
=
{
'thread_safe'
:
True
,
'network'
:
False
,
'virtual'
:
False
,
'read_only'
:
False
,
'unicode_paths'
:
os
.
path
.
supports_unicode_filenames
,
...
...
fs/rpcfs.py
View file @
69ab86f7
...
...
@@ -8,7 +8,6 @@ class from the :mod:`fs.expose.xmlrpc` module.
"""
import
sys
import
xmlrpclib
import
socket
...
...
@@ -92,8 +91,9 @@ class RPCFS(FS):
"""
_meta
=
{
'virtual'
:
False
,
'network'
:
True
,
_meta
=
{
'thread_safe'
:
True
,
'virtual'
:
False
,
'network'
:
True
,
}
def
__init__
(
self
,
uri
,
transport
=
None
):
...
...
fs/s3fs.py
View file @
69ab86f7
...
...
@@ -57,7 +57,8 @@ class S3FS(FS):
or flushed.
"""
_meta
=
{
'virtual'
:
False
,
_meta
=
{
'thread_safe'
:
True
,
'virtual'
:
False
,
'read_only'
:
False
,
'unicode_paths'
:
True
,
'case_insensitive_paths'
:
False
,
...
...
fs/sftpfs.py
View file @
69ab86f7
...
...
@@ -52,7 +52,8 @@ class SFTPFS(FS):
"""
_meta
=
{
'virtual'
:
False
,
_meta
=
{
'thread_safe'
:
True
,
'virtual'
:
False
,
'read_only'
:
False
,
'unicode_paths'
:
True
,
'case_insensitive_paths'
:
False
,
...
...
fs/tempfs.py
View file @
69ab86f7
...
...
@@ -21,7 +21,8 @@ class TempFS(OSFS):
"""Create a Filesystem in a tempory directory (with tempfile.mkdtemp),
and removes it when the TempFS object is cleaned up."""
_meta
=
{
'virtual'
:
False
,
_meta
=
{
'thread_safe'
:
True
,
'virtual'
:
False
,
'read_only'
:
False
,
'unicode_paths'
:
os
.
path
.
supports_unicode_filenames
,
'case_insensitive_paths'
:
os
.
path
.
normcase
(
'Aa'
)
==
'aa'
,
...
...
fs/zipfs.py
View file @
69ab86f7
...
...
@@ -72,7 +72,8 @@ class ZipFS(FS):
"""A FileSystem that represents a zip file."""
_meta
=
{
'virtual'
:
False
,
_meta
=
{
'thread_safe'
:
True
,
'virtual'
:
False
,
'read_only'
:
False
,
'unicode_paths'
:
True
,
'case_insensitive_paths'
:
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