scandir

scandir

[code=golang]
items, _ := ioutil.ReadDir(".") // []fs.FileInfo
for _, item := range items {
    // item = fs.FileInfo
}
[/code]