diff options
author | willmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f> | 2010-07-10 15:29:54 +0000 |
---|---|---|
committer | willmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f> | 2010-07-10 15:29:54 +0000 |
commit | fb95d7bef7a67a927bb66d0bfc8598650c05f04f (patch) | |
tree | 147b4384eab2e22779e5cc6e1c4219b27f797e73 /fs/memoryfs.py | |
parent | 8a504419216d4862a948f2dfce3f058aec74d958 (diff) | |
download | pyfilesystem-git-fb95d7bef7a67a927bb66d0bfc8598650c05f04f.tar.gz |
Added better zip exceptions, and added __all__ to core classes
Diffstat (limited to 'fs/memoryfs.py')
-rw-r--r-- | fs/memoryfs.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/memoryfs.py b/fs/memoryfs.py index 9dcbbf3..6ecb95a 100644 --- a/fs/memoryfs.py +++ b/fs/memoryfs.py @@ -11,8 +11,9 @@ If you open a file from a `memoryfs` you will get back a StringIO object from th """
import datetime
-from fs.path import iteratepath
+from fs.path import iteratepath, pathsplit, normpath
from fs.base import *
+from fs.errors import *
from fs import _thread_synchronize_default
try:
@@ -131,7 +132,6 @@ class MemoryFile(object): return False
-
class DirEntry(object):
def __init__(self, type, name, contents=None):
@@ -507,8 +507,7 @@ class MemoryFS(FS): info['size'] = len(dir_entry.data or '')
info['st_mode'] = 0666
- return info
-
+ return info
@synchronize
def copydir(self, src, dst, overwrite=False, ignore_errors=False, chunk_size=16384):
|