Use a cleaner way to get the directory path of a URL.
Use a cleaner way to get the directory path of a URL.

jeremiahmarks/mechanize,sparklemotion/mechanize,flavorjones/mechanize,gchan/mechanize,pwnall/mechanize,gchan/mechanize,uksa/mechanize,sparklemotion/mechanize,uksa/mechanize,jeremiahmarks/mechanize,eligoenergy/mechanize,bugmelody/mechanize,sjchakrav/mechanize,bugmelody/mechanize,eligoenergy/mechanize,sjchakrav/mechanize,pwnall/mechanize