summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-22 15:29:58 -0600
committerJeff Carr <[email protected]>2024-02-22 15:29:58 -0600
commitda5e5f64555dc38a07b4d01665747dee91d1a82a (patch)
tree10cd74987ae46780b8b0e5803f9450d0b971a27d
parentc9df5a7aceaecd7d2f022a6ebccc7b8a9909059b (diff)
add IsDir()
-rw-r--r--shell.go4
1 files changed, 4 insertions, 0 deletions
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))