aboutsummaryrefslogtreecommitdiff
path: root/src/property.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/property.lisp')
-rw-r--r--src/property.lisp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/property.lisp b/src/property.lisp
index 23c1780..cebc084 100644
--- a/src/property.lisp
+++ b/src/property.lisp
@@ -604,6 +604,12 @@ PATH already has the specified CONTENT and MODE."
(defun cksum (file)
(parse-integer (car (split-string (run "cksum" file)))))
+(defun local-cksum (file)
+ (parse-integer
+ (car
+ (split-string
+ (run-program `("cksum" ,(unix-namestring file)) :output :string)))))
+
;; this is a safe parse of ls(1) output given its POSIX specification
(defun ls-cksum (file)
(when-let* ((ls (ignore-errors