- updates to the upload resume functionality

git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@169 21d32557-59b3-4da0-833f-c5933fad653e
This commit is contained in:
Jim Wigginton 2011-07-04 20:42:05 +00:00
parent 8b352152dd
commit bc5e07cd69
1 changed files with 3 additions and 1 deletions

View File

@ -1095,7 +1095,9 @@ class Net_SFTP extends Net_SSH2 {
$offset = 0;
if ($mode & NET_SFTP_APPEND) {
$size = $this->_size($remote_file);
$offset = $size !== false ? $size : false;
$offset = $size !== false ? $size : 0;
} else {
$flags|= NET_SFTP_OPEN_TRUNCATE;
}
// --------------