From da5e5f64555dc38a07b4d01665747dee91d1a82a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 22 Feb 2024 15:29:58 -0600 Subject: [PATCH] add IsDir() --- shell.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell.go b/shell.go index 6b4d1a2..faaad07 100644 --- a/shell.go +++ b/shell.go @@ -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))