mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
fix (azure): filter out unwanted prefixes
This commit is contained in:
parent
628c23b682
commit
a6e1d2899d
1 changed files with 3 additions and 0 deletions
|
|
@ -101,6 +101,9 @@ func (this *AzureBlob) Ls(path string) ([]os.FileInfo, error) {
|
||||||
return files, err
|
return files, err
|
||||||
}
|
}
|
||||||
for _, blob := range resp.ListBlobsHierarchySegmentResponse.Segment.BlobPrefixes {
|
for _, blob := range resp.ListBlobsHierarchySegmentResponse.Segment.BlobPrefixes {
|
||||||
|
if *blob.Name == "/" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
files = append(files, File{
|
files = append(files, File{
|
||||||
FName: filepath.Base(*blob.Name),
|
FName: filepath.Base(*blob.Name),
|
||||||
FType: "directory",
|
FType: "directory",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue