mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-25 03:16:02 +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->size === false) {
|
||||||
if ($this->mode[0] == 'r') {
|
if ($this->mode[0] == 'r') {
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
$this->sftp->touch($path);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch ($this->mode[0]) {
|
switch ($this->mode[0]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user