speedbar-line-file

speedbar-line-file is a compiled Lisp function in `speedbar.el'.

(speedbar-line-file &optional P)

Retrieve the file or whatever from the line at point P.
The return value is a string representing the file. If it is a
directory, then it is the directory name.