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

2005-04-23 Thread has
Larry Meyn wrote: >On Apr 22, 2005, at 7:00 PM, Bob Ippolito wrote: > > >> There are still some scriptable applications that only deal with HFS > >> paths, so I would vote for including conversion options if it's no > >> too much trouble. However, the need will decrease with time. > >> (Although

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

2005-04-23 Thread Larry Meyn
On Apr 22, 2005, at 9:08 AM, has wrote: I'm not sure how useful HFS path conversion options will really be; it seemed an idea to put it in for completeness' sake, but perhaps it's just overkill? There are still some scriptable applications that only deal with HFS paths, so I would vote for inclu

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

2005-04-23 Thread Bob Ippolito
On Apr 22, 2005, at 9:39 PM, Larry Meyn wrote: On Apr 22, 2005, at 9:08 AM, has wrote: I'm not sure how useful HFS path conversion options will really be; it seemed an idea to put it in for completeness' sake, but perhaps it's just overkill? There are still some scriptable applications that only

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

2005-04-22 Thread Nicholas Riley
On Fri, Apr 22, 2005 at 05:08:47PM +0100, has wrote: > I'm kinda leery of using MacPython's CF wrapper as it's a bit buggy in > places. Still your example looks like it works ok - good suggestion, thanks. > > One bit I'm not sure about though - if I run this: > > u = toCF('A Non-mounted > Drive

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

2005-04-22 Thread Larry Meyn
On Apr 22, 2005, at 7:00 PM, Bob Ippolito wrote: On Apr 22, 2005, at 9:39 PM, Larry Meyn wrote: On Apr 22, 2005, at 9:08 AM, has wrote: I'm not sure how useful HFS path conversion options will really be; it seemed an idea to put it in for completeness' sake, but perhaps it's just overkill? There

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

2005-04-22 Thread has
Dave Opstad wrote: > > 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

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

2005-04-22 Thread Nicholas Riley
On Fri, Apr 22, 2005 at 02:05:28PM +0100, has wrote: > 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? Keep in mind that HFS paths aren't unique,

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

2005-04-22 Thread Larry Meyn
Has, Jack helped me out awhile back in creating HFS paths. The archive is at http://mail.python.org/pipermail/pythonmac-sig/2003-August/008527.html Larry On Apr 22, 2005, at 6:05 AM, has wrote: Hi all, Just wondering if there's anything in MacPython for converting HFS paths to POSIX and vice-v

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

2005-04-22 Thread Dave Opstad
> 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

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

2005-04-22 Thread has
Hi all, 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? Ta, has -- http://freespace.virgin.net/hamish.sanderson/