| @@ 240-245 (lines=6) @@ | ||
| 237 | $farray = array(); |
|
| 238 | if ($FOLDER != '') { |
|
| 239 | // Create the folder if it doesn't exist |
|
| 240 | if (!Filesystem::is_dir($FOLDER)) { |
|
| 241 | if (!Filesystem::mkdir($FOLDER)) { |
|
| 242 | \OCP\Util::writeLog('ownnote', 'Could not create ownNote directory.', \OCP\Util::ERROR); |
|
| 243 | exit; |
|
| 244 | } |
|
| 245 | } |
|
| 246 | // Synchronize files to the database |
|
| 247 | $filearr = array(); |
|
| 248 | if ($listing = Filesystem::opendir($FOLDER)) { |
|
| @@ 294-299 (lines=6) @@ | ||
| 291 | $farray = array(); |
|
| 292 | if ($FOLDER != '') { |
|
| 293 | // Create the folder if it doesn't exist |
|
| 294 | if (!Filesystem::is_dir($FOLDER)) { |
|
| 295 | if (!Filesystem::mkdir($FOLDER)) { |
|
| 296 | \OCP\Util::writeLog('ownnote', 'Could not create ownNote directory.', \OCP\Util::ERROR); |
|
| 297 | throw new \Exception("Error creating ownNote directory"); |
|
| 298 | } |
|
| 299 | } |
|
| 300 | // Synchronize files to the database |
|
| 301 | $filearr = array(); |
|
| 302 | if ($listing = Filesystem::opendir($FOLDER)) { |
|