mirror of
https://github.com/danog/tgseclib.git
synced 2025-01-21 21:41:14 +01:00
- 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:
parent
8b352152dd
commit
bc5e07cd69
@ -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;
|
||||
}
|
||||
// --------------
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user