projector/main.go

20 lines
310 B
Go
Raw Normal View History

2021-03-09 13:17:52 +00:00
package main
2021-03-09 18:52:34 +00:00
import (
"fmt"
"os"
)
2021-03-09 13:19:20 +00:00
func main() {
2021-03-09 18:52:34 +00:00
wd, _ := os.Getwd()
dirlist, _ := os.ReadDir(wd)
fmt.Println(wd)
for _, item := range dirlist {
if os.DirEntry.IsDir(item) {
fmt.Println(wd + "/" + os.DirEntry.Name(item) + "/")
} else {
fmt.Println(wd + "/" + os.DirEntry.Name(item))
}
}
2021-03-09 13:17:52 +00:00
}