mirror of
https://github.com/danog/tgseclib.git
synced 2025-01-22 05:51:20 +01: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)
|
||||
{
|
||||
$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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user