equivalent of Ruby's Pathname?
Phlip
phlip2005 at gmail.com
Wed Feb 3 17:47:52 EST 2010
Pythonistas:
Yes, calling os.path.walk() and os.path.join() all the time on raw
strings is fun, but I seem to recall from my Ruby days a class called
Pathname, which presented an object that behaved like a string at
need, and like a filesystem path at need. path + 'folder' would
call .join() and insert the / correctly, for example.
What's the best equivalent in Python-land?
--
Phlip
More information about the Python-list
mailing list