Function: f-parent-of-p
f-parent-of-p is a byte-compiled function defined in f.el.
Signature
(f-parent-of-p PATH-A PATH-B)
Documentation
Return t if PATH-A is parent of PATH-B.
Other relevant functions are documented in the f group.
Shortdoc
;; f
(f-parent-of-p "/path/to" "/path/to/dir")
=> t
(f-parent-of-p "/path/to/dir" "/path/to")
=> nil
(f-parent-of-p "/path/to" "/path/to")
=> nil
Aliases
Source Code
;; Defined in ~/.emacs.d/elpa/f-20241003.1131/f.el
(defun f-parent-of-p (path-a path-b)
"Return t if PATH-A is parent of PATH-B."
(--when-let (f-parent path-b)
(f-same-p path-a it)))