Thursday, January 11, 2007 [Tweets] [Favorites]

Beware the Slash

[@"/a/b/c/d.e/" lastPathComponent] → @"d.e"
os.path.basename("/a/b/c/d.e/") → ""

Comments

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment