Need to create the file when it does not exist and mode[0] is not 'r'.

This commit is contained in:
Andreas Fischer 2015-06-25 14:24:18 +02:00
parent 01f547ba17
commit f0957021a1

View File

@ -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]) {