Skip to main content

Topic: get filename? (Read 1222 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • muzehyun
  • [*]
get filename?
I want to get filename when the song doesn't have any tags.

Closest thing I found is "handle->get_path()"
And it returns with directory "file://E:\Music\11-unknown_song.mp3"
I'm looking for a good helper method to extract only filename, without directory and file extension.

Thank you

sean

  • fbuser
  • [*][*][*][*][*]
  • Developer
get filename?
Reply #1
Try pfc::string_filename(handle->get_path())

  • muzehyun
  • [*]
get filename?
Reply #2
Perfect! Thanks!!