<p>Because <code>use_gio_unsafe_file_saving</code> can copy data across the network three times, if the FTP is flakey and slow it can take a long time, maybe it wasn't hung, just <em>VERY</em> slow.</p>

<p>Yes, <code>use_atomic_file_saving</code> is the best for this, if the remote filesystem allows you to rename over an existing file (windows doesn't IIUC).  It won't truncate unless the remote system does something strange.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/issues/828#issuecomment-165744880">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJwSPhz12Y21uoZCAug3gaWwjSMXoks5pQ9rogaJpZM4G3UHR.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/828#issuecomment-165744880"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>