documentation and small bug fixes

This commit is contained in:
2026-06-28 18:55:40 +02:00
parent b1b593896a
commit e538e8b180
7 changed files with 362 additions and 223 deletions
+4 -2
View File
@@ -91,9 +91,11 @@
(if (file-info-equal? info in-db)
(hash-set! in-db 'file-db 'unchanged)
(begin
(hash-set! in-db 'type (hash-ref info 'type))
(hash-set! in-db 'file-db 'changed)
(hash-set! in-db 'size (hash-ref info 'size))
(hash-set! in-db 'mtime (hash-ref info 'mtime))))
(when (eq? (hash-ref info 'type #f) 'file)
(hash-set! in-db 'size (hash-ref info 'size))
(hash-set! in-db 'mtime (hash-ref info 'mtime)))))
(hash-set! db-hash normalized-sub-path in-db)
(values base-path path in-db)
)
+6 -1
View File
@@ -33,7 +33,12 @@
(encoder-settings (hash 'target-sample-rate rate
'compression-level 8))
)
(with-handlers ([exn? (λ (e)
(with-handlers ([exn:break? (λ (e)
(err-am "Ctrl-c used")
(when (file-exists? tmp-file)
(delete-file tmp-file))
(raise e))]
[exn? (λ (e)
(err-am (format "~a" e))
(when (file-exists? tmp-file)
(delete-file tmp-file))