uniquify-buffer-file-name

uniquify-buffer-file-name is a compiled Lisp function in `uniquify.el'.

(uniquify-buffer-file-name BUFFER)

Return name of directory, file BUFFER is visiting, or nil if none.
Works on ordinary file-visiting buffers and buffers whose mode is mentioned
in `uniquify-list-buffers-directory-modes', otherwise returns nil.