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

Re: [sc-users] platform neutral path concatenation



Seems to me it would be better to handle this in standardizePath. What
if I send some code to a Windows user and I reference sound files like
"sounds/breaks/amen.wav"? pathConcat wouldn't cover that case.

My vote is to use regular concatenation and fix the path before
actually accessing the file.

hjh

On 3/6/06, stefan kersten <steve@xxxxxxxxxx> wrote:
> On Tue, Mar 07, 2006 at 01:50:59AM +1100, Item State wrote:
> > is there some way to do platform neutral path
> > concatenation such that
> >
> > pathConcat( "dir", "file" )
> >
> > returns "dir/file" on mac os and "dir\file" on
> > windows?
> >
> > i've looked in String.sc and PathName.sc, only found
> > ways to split paths.
>
> not that i know of, but this would definitely be useful ...

--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman