diff options
author | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2012-01-27 06:57:06 +0000 |
---|---|---|
committer | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2012-01-27 06:57:06 +0000 |
commit | c02d2bc1f727ca2d1bf8c46a1bd240d29a9a35ea (patch) | |
tree | 02d13cbbc49ec667cf04e7b9d4b4e802b3551b48 /fs/expose | |
parent | b4b740f92609efc9e2b5c83902efbab86fc9bdf5 (diff) | |
download | pyfilesystem-c02d2bc1f727ca2d1bf8c46a1bd240d29a9a35ea.tar.gz |
fs.expose.fuse: use flags_to_mode in create() method; thanks jtolds
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@754 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/expose')
-rw-r--r-- | fs/expose/fuse/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/expose/fuse/__init__.py b/fs/expose/fuse/__init__.py index 3780684..c75fc23 100644 --- a/fs/expose/fuse/__init__.py +++ b/fs/expose/fuse/__init__.py @@ -185,7 +185,8 @@ class FSOperations(Operations): # FUSE doesn't seem to pass correct mode information here - at least, # I haven't figured out how to distinguish between "w" and "w+". # Go with the most permissive option. - fh = self._reg_file(self.fs.open(path,"wb+"),path) + mode = flags_to_mode(fi.flags) + fh = self._reg_file(self.fs.open(path,mode),path) fi.fh = fh fi.keep_cache = 0 |