mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 13:07:53 +00:00
Need to create the file when it does not exist and mode[0] is not 'r'.
This commit is contained in:
parent
01f547ba17
commit
f0957021a1
@ -280,6 +280,8 @@ class Net_SFTP_Stream
|
||||
if ($this->size === false) {
|
||||
if ($this->mode[0] == 'r') {
|
||||
return false;
|
||||
} else {
|
||||
$this->sftp->touch($path);
|
||||
}
|
||||
} else {
|
||||
switch ($this->mode[0]) {
|
||||
|
Loading…
Reference in New Issue
Block a user