mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
SFTP: add explanation for use of 4294967296
This commit is contained in:
parent
8424a464a6
commit
172f15f5df
@ -1042,7 +1042,7 @@ class Net_SFTP extends Net_SSH2
|
|||||||
*/
|
*/
|
||||||
function truncate($filename, $new_size)
|
function truncate($filename, $new_size)
|
||||||
{
|
{
|
||||||
$attr = pack('N3', NET_SFTP_ATTR_SIZE, $new_size / 4294967296, $new_size);
|
$attr = pack('N3', NET_SFTP_ATTR_SIZE, $new_size / 4294967296, $new_size); // 4294967296 == 0x100000000 == 1<<32
|
||||||
|
|
||||||
return $this->_setstat($filename, $attr, false);
|
return $this->_setstat($filename, $attr, false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user