From 5c38b23cd7b04b06a19a060397ab79335d4a3fb5 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Tue, 28 Jul 2009 13:09:01 -0700 Subject: Do create new fh if needed diff --git a/fusearchive.py b/fusearchive.py index 8998601..aad8c0f 100755 --- a/fusearchive.py +++ b/fusearchive.py @@ -504,7 +504,7 @@ class FuseArchive(Fuse): # files works (in the create a read-only file for writing case) src = "./tree" + path logging.debug( "Saving fh for " + src ) - nflags = os.O_RDWR + nflags = os.O_RDWR | os.O_APPEND | os.O_CREAT self.file = os.fdopen( os.open( src, nflags, *mode ), flag2mode( nflags ) ) -- cgit v0.10.2