summaryrefslogtreecommitdiff
path: root/fs/tempfs.py
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
commitf92af63fa27381e917a1f1b1cd5e3de82ea18519 (patch)
treef8b9a0f732ac38e18ce6ade266f12478dd2964c0 /fs/tempfs.py
parentbc9437bfa6a9880031bb871122e59f2a830e3e54 (diff)
downloadpyfilesystem-git-f92af63fa27381e917a1f1b1cd5e3de82ea18519.tar.gz
Added getmeta and hasmeta methods
Diffstat (limited to 'fs/tempfs.py')
-rw-r--r--fs/tempfs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/tempfs.py b/fs/tempfs.py
index 2970c0a..8f6b20c 100644
--- a/fs/tempfs.py
+++ b/fs/tempfs.py
@@ -19,6 +19,12 @@ 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,
+ 'read_only' : False,
+ 'unicode_paths' : os.path.supports_unicode_filenames,
+ 'case_insensitive_paths' : os.path.normcase('Aa') == 'aa',
+ }
def __init__(self, identifier=None, temp_dir=None, dir_mode=0700, thread_synchronize=_thread_synchronize_default):
"""Creates a temporary Filesystem