File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
RemoteStorage/Driver/Adapter Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -442,9 +442,6 @@ public function isDirectory($path): bool
442442 if (!$ path ) {
443443 return true ;
444444 }
445-
446- $ path = $ this ->normalizeRelativePath ($ path , true );
447-
448445 return $ this ->isTypeDirectory ($ path );
449446 }
450447
@@ -457,7 +454,7 @@ public function isDirectory($path): bool
457454 private function isTypeDirectory ($ path )
458455 {
459456 try {
460- $ meta = $ this ->metadataProvider ->getMetadata ($ path );
457+ $ meta = $ this ->metadataProvider ->getMetadata ($ this -> normalizeRelativePath ( $ path, true ) );
461458 } catch (UnableToRetrieveMetadata $ e ) {
462459 return false ;
463460 }
Original file line number Diff line number Diff line change @@ -63,9 +63,7 @@ private function isDirectory($path): bool
6363 public function getMetadata (string $ path ): array
6464 {
6565 $ metadata = $ this ->cache ->getMetadata ($ path );
66- if ($ metadata && is_array ($ metadata )
67- && ($ metadata ['type ' ] == 'dir ' || $ this ->isMetadataComplete ($ metadata ))
68- ) {
66+ if (isset ($ metadata ['type ' ]) && ($ metadata ['type ' ] == 'dir ' || $ this ->isMetadataComplete ($ metadata ))) {
6967 return $ metadata ;
7068 }
7169 try {
You can’t perform that action at this time.
0 commit comments