2022-07-20 17:33:22 +00:00
|
|
|
package kiss
|
|
|
|
|
|
|
|
import "os"
|
|
|
|
|
|
|
|
func dirExists(path string) bool {
|
|
|
|
_, err := os.Stat(path)
|
|
|
|
return err == nil
|
|
|
|
}
|
2022-07-20 17:35:31 +00:00
|
|
|
|
|
|
|
func listDir(path string) []string {
|
|
|
|
dir, _ := os.Open(path)
|
|
|
|
defer dir.Close()
|
|
|
|
files, _ := dir.Readdirnames(-1)
|
|
|
|
return files
|
|
|
|
}
|