(defun kui/traverse-parents-for (filename &optional dirname) "Find FILENAME from parent directories of the current buffer file or DIRNAME" (if dirname (let ((path (concat (file-name-as-directory dirname) filename))) (if (file-exists-p path) path (if (string= "/" dirname) nil (kui/traverse-parents-for filename (file-name-directory (directory-file-name dirname)))))) (kui/traverse-parents-for filenam
{{#tags}}- {{label}}
{{/tags}}