add IsDir()

This commit is contained in:
Jeff Carr 2024-02-22 15:29:58 -06:00
parent c9df5a7ace
commit da5e5f6455
1 changed files with 4 additions and 0 deletions

View File

@ -188,6 +188,10 @@ func Mkdir(dir string) bool {
return true
}
func IsDir(dirname string) bool {
return Dir(dirname)
}
// return true if the filename exists (cross-platform)
func Dir(dirname string) bool {
info, err := os.Stat(Path(dirname))