diff options
author | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2009-05-05 06:52:33 +0000 |
---|---|---|
committer | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2009-05-05 06:52:33 +0000 |
commit | 3a7a9157f52751b006e54d6f5c0aff3058162991 (patch) | |
tree | dfdb589d56904bba0880cea703b2feeacbf33049 | |
parent | 9bb3f9d6dfe9be0332e2c093ebe7466641ec85d2 (diff) | |
download | pyfilesystem-git-3a7a9157f52751b006e54d6f5c0aff3058162991.tar.gz |
tempfs compatability with updated tests
-rw-r--r-- | fs/tempfs.py | 4 |
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 |