Function: org-roam-db--file-hash

org-roam-db--file-hash is a byte-compiled function defined in org-roam-db.el.

Signature

(org-roam-db--file-hash FILE-PATH)

Documentation

Compute the hash of FILE-PATH.

Source Code

;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-db.el
(defun org-roam-db--file-hash (file-path)
  "Compute the hash of FILE-PATH."
  (with-temp-buffer
    (set-buffer-multibyte nil)
    (insert-file-contents-literally file-path)
    (secure-hash 'sha1 (current-buffer))))