X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Ffile_directories%2Fio%2Fclass_FrameworkFileInputOutputPointer.php;fp=inc%2Fclasses%2Fmain%2Ffile_directories%2Fio%2Fclass_FrameworkFileInputOutputPointer.php;h=a86a8d3a3b46da815015b6e1b1e819b0aa4edd98;hp=edf9f5728a4dae33058261bed2f3af15fbd3e56d;hb=b541bfee56699a028ff708e1f2d8fe92d9cfe2b0;hpb=27ca60ed584841d68cdbf6a43356a1522f02a513 diff --git a/inc/classes/main/file_directories/io/class_FrameworkFileInputOutputPointer.php b/inc/classes/main/file_directories/io/class_FrameworkFileInputOutputPointer.php index edf9f572..a86a8d3a 100644 --- a/inc/classes/main/file_directories/io/class_FrameworkFileInputOutputPointer.php +++ b/inc/classes/main/file_directories/io/class_FrameworkFileInputOutputPointer.php @@ -51,7 +51,7 @@ class FrameworkFileInputOutputPointer extends BaseFileIo implements InputOutputP } elseif (!BaseFrameworkSystem::isReachableFilePath($fileName)) { // File exists but cannot be read throw new FileIoException($fileName, self::EXCEPTION_FILE_NOT_REACHABLE); - } elseif (!BaseFrameworkSystem::isReadableFile($fileName)) { + } elseif ((!BaseFrameworkSystem::isReadableFile($fileName)) && (file_exists($fileName))) { // File exists but cannot be read throw new FileReadProtectedException($fileName, self::EXCEPTION_FILE_CANNOT_BE_READ); } elseif (!is_writable($fileName)) {