mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 04:05:15 +00:00
Merge branch '3.0'
This commit is contained in:
commit
f57f5debe0
@ -2103,8 +2103,8 @@ class SFTP extends SSH2
|
||||
if ($this->preserveTime) {
|
||||
$stat = stat($data);
|
||||
$attr = $this->version < 4 ?
|
||||
pack('N3', Attribute::ACCESSTIME, $stat['atime'], $stat['time']) :
|
||||
Strings::packSSH2('NQ2', Attribute::ACCESSTIME | Attribute::MODIFYTIME, $stat['atime'], $stat['time']);
|
||||
pack('N3', Attribute::ACCESSTIME, $stat['atime'], $stat['mtime']) :
|
||||
Strings::packSSH2('NQ2', Attribute::ACCESSTIME | Attribute::MODIFYTIME, $stat['atime'], $stat['mtime']);
|
||||
if (!$this->setstat($remote_file, $attr, false)) {
|
||||
throw new \RuntimeException('Error setting file time');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user