summaryrefslogtreecommitdiff
path: root/fs/contrib
diff options
context:
space:
mode:
authorwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2010-11-07 17:18:50 +0000
committerwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2010-11-07 17:18:50 +0000
commitc73ab0891377d813ff459e2f9d7b953a3817f85f (patch)
treef8b9a0f732ac38e18ce6ade266f12478dd2964c0 /fs/contrib
parent9f3cc97b77ef71ae0937a428797a5cb48a7db20c (diff)
downloadpyfilesystem-c73ab0891377d813ff459e2f9d7b953a3817f85f.tar.gz
Added getmeta and hasmeta methods
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@526 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/contrib')
-rw-r--r--fs/contrib/bigfs/__init__.py6
-rw-r--r--fs/contrib/davfs/__init__.py6
-rw-r--r--fs/contrib/tahoefs/__init__.py8
3 files changed, 20 insertions, 0 deletions
diff --git a/fs/contrib/bigfs/__init__.py b/fs/contrib/bigfs/__init__.py
index 4be3649..960d14a 100644
--- a/fs/contrib/bigfs/__init__.py
+++ b/fs/contrib/bigfs/__init__.py
@@ -156,6 +156,12 @@ class _ExceptionProxy(object):
class BigFS(FS):
"""A FileSystem that represents a BIG file."""
+
+ _meta = { 'virtual' : False,
+ 'read_only' : True,
+ 'unicode_paths' : True,
+ 'case_insensitive_paths' : False,
+ }
def __init__(self, filename, mode="r", thread_synchronize=True):
"""Create a FS that maps on to a big file.
diff --git a/fs/contrib/davfs/__init__.py b/fs/contrib/davfs/__init__.py
index acc6ba0..153b0c4 100644
--- a/fs/contrib/davfs/__init__.py
+++ b/fs/contrib/davfs/__init__.py
@@ -72,6 +72,12 @@ class DAVFS(FS):
"http": httplib.HTTPConnection,
"https": httplib.HTTPSConnection,
}
+
+ _meta = { 'virtual' : False,
+ 'read_only' : False,
+ 'unicode_paths' : True,
+ 'case_insensitive_paths' : False,
+ }
def __init__(self,url,credentials=None,get_credentials=None,thread_synchronize=True,connection_classes=None,timeout=None):
"""DAVFS constructor.
diff --git a/fs/contrib/tahoefs/__init__.py b/fs/contrib/tahoefs/__init__.py
index 41f85c7..1b23fc2 100644
--- a/fs/contrib/tahoefs/__init__.py
+++ b/fs/contrib/tahoefs/__init__.py
@@ -75,6 +75,14 @@ def _fix_path(func):
return wrapper
class TahoeFS(CacheFS):
+
+ _meta = { 'virtual' : False,
+ 'read_only' : False,
+ 'unicode_paths' : True,
+ 'case_insensitive_paths' : False,
+ 'may_block' : False
+ }
+
def __init__(self, dircap, timeout=60, autorun=True, largefilesize=10*1024*1024, webapi='http://127.0.0.1:3456'):
'''
Creates instance of TahoeFS.