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
442
442
if (!$ path ) {
443
443
return true ;
444
444
}
445
-
446
- $ path = $ this ->normalizeRelativePath ($ path , true );
447
-
448
445
return $ this ->isTypeDirectory ($ path );
449
446
}
450
447
@@ -457,7 +454,7 @@ public function isDirectory($path): bool
457
454
private function isTypeDirectory ($ path )
458
455
{
459
456
try {
460
- $ meta = $ this ->metadataProvider ->getMetadata ($ path );
457
+ $ meta = $ this ->metadataProvider ->getMetadata ($ this -> normalizeRelativePath ( $ path, true ) );
461
458
} catch (UnableToRetrieveMetadata $ e ) {
462
459
return false ;
463
460
}
Original file line number Diff line number Diff line change @@ -63,9 +63,7 @@ private function isDirectory($path): bool
63
63
public function getMetadata (string $ path ): array
64
64
{
65
65
$ 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 ))) {
69
67
return $ metadata ;
70
68
}
71
69
try {
You can’t perform that action at this time.
0 commit comments