add IsDir()
This commit is contained in:
parent
c9df5a7ace
commit
da5e5f6455
4
shell.go
4
shell.go
|
@ -188,6 +188,10 @@ func Mkdir(dir string) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IsDir(dirname string) bool {
|
||||||
|
return Dir(dirname)
|
||||||
|
}
|
||||||
|
|
||||||
// return true if the filename exists (cross-platform)
|
// return true if the filename exists (cross-platform)
|
||||||
func Dir(dirname string) bool {
|
func Dir(dirname string) bool {
|
||||||
info, err := os.Stat(Path(dirname))
|
info, err := os.Stat(Path(dirname))
|
||||||
|
|
Loading…
Reference in New Issue