speedbar-directory-buttons

speedbar-directory-buttons is a compiled Lisp function in `speedbar.el'.

(speedbar-directory-buttons DIRECTORY INDEX)

Insert a single button group at point for DIRECTORY.
Each directory part is a different button. If part of the directory
matches the user directory ~, then it is replaced with a ~.
INDEX is not used, but is required by the caller.