File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 77use AzureOss \Storage \Blob \BlobContainerClient ;
88use AzureOss \Storage \Blob \Models \Blob ;
99use AzureOss \Storage \Blob \Models \BlobProperties ;
10+ use AzureOss \Storage \Blob \Models \GetBlobsOptions ;
1011use AzureOss \Storage \Blob \Models \UploadBlobOptions ;
1112use AzureOss \Storage \Blob \Sas \BlobSasBuilder ;
1213use League \Flysystem \ChecksumAlgoIsNotSupported ;
@@ -63,7 +64,9 @@ public function fileExists(string $path): bool
6364 public function directoryExists (string $ path ): bool
6465 {
6566 try {
66- foreach ($ this ->listContents ($ path , false ) as $ ignored ) {
67+ $ options = new GetBlobsOptions (pageSize: 1 );
68+
69+ foreach ($ this ->containerClient ->getBlobs ($ this ->prefixer ->prefixDirectoryPath ($ path ), $ options ) as $ ignored ) {
6770 return true ;
6871 };
6972
You can’t perform that action at this time.
0 commit comments