Function: f-same-p
f-same-p is a byte-compiled function defined in f.el.
Signature
(f-same-p PATH-A PATH-B)
Documentation
Return t if PATH-A and PATH-B are references to same file.
Other relevant functions are documented in the f group.
Shortdoc
;; f
(f-same-p "foo.txt" "foo.txt")
=> t
(f-same-p "foo/bar/../baz" "foo/baz")
=> t
(f-same-p "/path/to/foo.txt" "/path/to/bar.txt")
=> nil
Aliases
Source Code
;; Defined in ~/.emacs.d/elpa/f-20241003.1131/f.el
(defun f-same-p (path-a path-b)
"Return t if PATH-A and PATH-B are references to same file."
(equal
(f-canonical (directory-file-name (f-expand path-a)))
(f-canonical (directory-file-name (f-expand path-b)))))