Natasha15030003 / pyfilesystem

Automatically exported from code.google.com/p/pyfilesystem
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

RemoteFileBuffer _setContents problem #158

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Flush the RemoteFileBuffer 5x times and every time the content will be
   written again to the remote file

**What is the expected output? What do you see instead?
When calling method _setContents from RemoteFileBuffer it checks for changes
 and if True sets the content to remote file. But after that it doesn't set
 the _changed variable to false, and because of that every time I call the 
 method it will write again to the remote file.

*Please provide any additional information below.
If this is expected to behave like this, then OK. But if not, the problem for 
me is when my application closes python calls flush and close on the 
RemoteFileBuffer, and writes two times to the remote file ( and for me the 
access to the remote file is very time consuming and expensive ).

Original issue reported on code.google.com by w.kralje...@gmail.com on 12 Aug 2013 at 4:28

GoogleCodeExporter commented 8 years ago
I really must find the time to dive into this big bugpile again sometime soon 
:-/

Original comment by gc...@loowis.durge.org on 12 Aug 2013 at 4:35