[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Porting File::PathConvert



File::PathConvert is a module that allows conversions between absolute
and relative path names on multiple platforms. As of the current
version (0.84), it's pretty well shaken-out on Unix, Win32 and URLs.
Mac, VMS, and os2 are pure guesswork on my part at this time.

I have coded in some guesses as to how to work with MacOS paths, but 
I don't have a mac, let alone MacPerl to work things out on.

What I'm after is a correct algorithm for adding
a relative path to an absolute path and ending up with a
correct result. 

And another one for subtracting two absolute
paths to get the relative path from one to the other. 

And any suggestions for converting paths to a minimal canonical 
form. For instance, under Unix-lie filesystems, '/name/..' 
and '/////' are both removed.

I don't ask much, do I? Thanks if you can help!

I've got a fairly good test suite built in and I'd like to add both 
basic and tricky conversions to it for the Mac. So if folks have 
any good ones, I'd love to add them in.

Thanks,

Barrie

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch