aboutsummaryrefslogtreecommitdiff
path: root/module/hnh/util/path.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/hnh/util/path.scm')
-rw-r--r--module/hnh/util/path.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/module/hnh/util/path.scm b/module/hnh/util/path.scm
index 28a026bc..0aa747d0 100644
--- a/module/hnh/util/path.scm
+++ b/module/hnh/util/path.scm
@@ -51,3 +51,9 @@
'(())
(string->list path)))))))
(cons head (remove string-null? tail))))
+
+
+(define-public (file-hidden? path)
+ (define base (basename path))
+ (and (not (string-null? base))
+ (char=? #\. (string-ref base 0))))