summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2009-05-05 06:52:33 +0000
committerrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2009-05-05 06:52:33 +0000
commit3c4b3cde0c4254e02cbefae579b5fa7dcf30bfe4 (patch)
treedfdb589d56904bba0880cea703b2feeacbf33049
parentc3297c1f0091525f5cff5e1dbd35056688223d3f (diff)
downloadpyfilesystem-3c4b3cde0c4254e02cbefae579b5fa7dcf30bfe4.tar.gz
tempfs compatability with updated tests
git-svn-id: http://pyfilesystem.googlecode.com/svn/branches/rfk-ideas@135 67cdc799-7952-0410-af00-57a81ceafa0f
-rw-r--r--fs/tempfs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/tempfs.py b/fs/tempfs.py
index dc4ca7e..5aa66e6 100644
--- a/fs/tempfs.py
+++ b/fs/tempfs.py
@@ -9,7 +9,7 @@ class TempFS(OSFS):
"""Create a Filesystem in a tempory directory (with tempfile.mkdtemp),
and removes it when the TempFS object is cleaned up."""
- def __init__(self, identifier=None, thread_syncronize=True):
+ def __init__(self, identifier=None, dir_mode=0700, thread_synchronize=True):
"""Creates a temporary Filesystem
identifier -- A string that is included in the name of the temporary directory,
@@ -18,7 +18,7 @@ class TempFS(OSFS):
"""
self._temp_dir = tempfile.mkdtemp(identifier or "TempFS")
self._cleaned = False
- OSFS.__init__(self, self._temp_dir, thread_syncronize=thread_syncronize)
+ OSFS.__init__(self, self._temp_dir, dir_mode=dir_mode, thread_synchronize=thread_synchronize)
def __str__(self):
return '<TempFS: %s>' % self._temp_dir