summaryrefslogtreecommitdiff
path: root/checkdir.go
diff options
context:
space:
mode:
Diffstat (limited to 'checkdir.go')
-rw-r--r--checkdir.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/checkdir.go b/checkdir.go
index 6f7f75d..63dfef0 100644
--- a/checkdir.go
+++ b/checkdir.go
@@ -6,7 +6,8 @@ import (
"os"
)
-// checkDirEmpty - check if "dir" exists and is an empty directory
+// checkDirEmpty - check if "dir" exists and is an empty directory.
+// Returns an *os.PathError if Stat() on the path fails.
func checkDirEmpty(dir string) error {
err := checkDir(dir)
if err != nil {