From 35675ad95b5283995c5ee4f60bbf2644b9831228 Mon Sep 17 00:00:00 2001 From: TJ Hoplock Date: Sun, 20 Oct 2024 23:13:03 -0400 Subject: [PATCH] chore: add func doc for `utils.IsHidden()` --- pkg/utils/utils.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index 9f4f6db..e73ca93 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -80,6 +80,9 @@ func GetHostname() string { return h } +// IsHidden is a convenience function to check if a file/directory is hidden. +// It returns true if the file/directory name begins with a ".", and false +// otherwise. func IsHidden(path string) bool { return strings.HasPrefix(path, ".") }