I need the whole name :( the slash isn't separating the directory. It's "artist/track.mp3" ________________________________ From: golang-nuts@googlegroups.com <golang-nuts@googlegroups.com> on behalf of Tamás Gulácsi <tgulacs...@gmail.com> Sent: Sunday, October 21, 2018 12:00:08 AM To: golang-nuts Subject: [go-nuts] Escape slashes from file path
Use filepath.Base to strip the directory part. -- You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/OYUc8qkAogM/unsubscribe. To unsubscribe from this group and all its topics, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.