@@ -389,7 +389,7 @@ public function fopen($path, $mode) {
389389 if ($ this ->util ->isExcluded ($ fullPath ) === false ) {
390390 $ size = $ unencryptedSize = 0 ;
391391 $ realFile = $ this ->util ->stripPartialFileExtension ($ path );
392- $ targetExists = $ this ->file_exists ($ realFile ) || $ this ->file_exists ($ path );
392+ $ targetExists = $ this ->is_file ($ realFile ) || $ this ->file_exists ($ path );
393393 $ targetIsEncrypted = false ;
394394 if ($ targetExists ) {
395395 // in case the file exists we require the explicit module as
@@ -853,7 +853,7 @@ protected function getFullPath($path) {
853853 */
854854 protected function readFirstBlock ($ path ) {
855855 $ firstBlock = '' ;
856- if ($ this ->storage ->file_exists ($ path )) {
856+ if ($ this ->storage ->is_file ($ path )) {
857857 $ handle = $ this ->storage ->fopen ($ path , 'r ' );
858858 $ firstBlock = fread ($ handle , $ this ->util ->getHeaderSize ());
859859 fclose ($ handle );
@@ -870,7 +870,7 @@ protected function readFirstBlock($path) {
870870 protected function getHeaderSize ($ path ) {
871871 $ headerSize = 0 ;
872872 $ realFile = $ this ->util ->stripPartialFileExtension ($ path );
873- if ($ this ->storage ->file_exists ($ realFile )) {
873+ if ($ this ->storage ->is_file ($ realFile )) {
874874 $ path = $ realFile ;
875875 }
876876 $ firstBlock = $ this ->readFirstBlock ($ path );
@@ -918,7 +918,7 @@ protected function parseRawHeader($rawHeader) {
918918 */
919919 protected function getHeader ($ path ) {
920920 $ realFile = $ this ->util ->stripPartialFileExtension ($ path );
921- $ exists = $ this ->storage ->file_exists ($ realFile );
921+ $ exists = $ this ->storage ->is_file ($ realFile );
922922 if ($ exists ) {
923923 $ path = $ realFile ;
924924 }
0 commit comments