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