I need the whole name :( the slash isn't separating the directory. It's "artist/track.mp3" ________________________________ From: [email protected] <[email protected]> on behalf of Tamás Gulácsi <[email protected]> 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 [email protected]. 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
