[Pythonmac-SIG] converting file paths between HFS and POSIX formats

Dave Opstad dave.opstad at monotypeimaging.com
Fri Apr 22 15:55:38 CEST 2005


> Just wondering if there's anything in MacPython for converting HFS paths to
> POSIX and vice-versa, or is my memory playing tricks on me? If not, does
> anyone have some code they don't mind sharing?

To clarify: are you asking for something that converts a string with colons
to one with slashes and back; or something that converts from a slashpath
into FSRefs or FSSpecs?

Dave



More information about the Pythonmac-SIG mailing list