Function: projectile--parent-directory-key

projectile--parent-directory-key is a byte-compiled function defined in projectile.el.

Signature

(projectile--parent-directory-key REL-PATH)

Documentation

Return REL-PATH's parent directory, without a trailing slash.

A key for the frameworks that group a resource's files in a directory rather than naming them after it, so "polls/models.py" keys as
"polls" and a nested "apps/polls/models.py" as "apps/polls", without
the two colliding.

Aliases

projectile--django-app-key

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--parent-directory-key (rel-path)
  "Return REL-PATH\\='s parent directory, without a trailing slash.
A key for the frameworks that group a resource\\='s files in a directory
rather than naming them after it, so \"polls/models.py\" keys as
\"polls\" and a nested \"apps/polls/models.py\" as \"apps/polls\", without
the two colliding."
  (when-let* ((dir (file-name-directory rel-path)))
    (directory-file-name dir)))