Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: get filename? (Read 2101 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

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

get filename?

Reply #1
Try pfc::string_filename(handle->get_path())

 

get filename?

Reply #2
Perfect! Thanks!!