fix (azure): filter out unwanted prefixes

This commit is contained in:
MickaelK 2025-10-17 15:56:09 +11:00
parent 628c23b682
commit a6e1d2899d

View file

@ -101,6 +101,9 @@ func (this *AzureBlob) Ls(path string) ([]os.FileInfo, error) {
return files, err
}
for _, blob := range resp.ListBlobsHierarchySegmentResponse.Segment.BlobPrefixes {
if *blob.Name == "/" {
continue
}
files = append(files, File{
FName: filepath.Base(*blob.Name),
FType: "directory",