Retrieves the name of the current folder.
The function fails if there is no folder selected in the list control.