[futurebasic] Transforming fbFullFilePath$ to UnixFullFilePath$

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2003 : Group Archive : Group : All Groups

From: michael evans <michael.evans@...>
Date: Thu, 29 May 2003 11:04:12 -0400
Hello all...

I'm not sure if I'm stating this well.


I would like to construct an FN convertFBpathToUnixPath$

In particular I want to locate the SYSTEM(_aplVol)


LONG IF USR GETFULLPATHNAME(SYSTEM(_aplVol)%,0&, FBAplFolderPath$) = _noErr

UNIXAplFolderPath$ = FN convertFBpathToUnixPath$(FBAplFolderPath)

END IF

Example "acme" is my boot drive. If the FB application folder
    FBAplFolderPath$ = "acme:Users:michaelevans:fbApp:
Then the UNIX application folder path would be something like:
    UNIXAplFolderPath$ = /Users/michaelevans/fbApp/

Example "fw60gb" is a non-boot drive. If the FB application folder
    FBAplFolderPath$ = "fw60gb:fbApp:
Then the UNIX application folder path would be something like:
    UNIXAplFolderPath$ = /Volumes/fw60gb/fbApp/


(I may not have the slashes quite right)

Because I'm sloppy and still an OS9 kinda guy, even though I'm running OSX
as an administrator I still have most of my files on the root of my boot
drive... So what's the correct UNIX path for  "acme:fbApp:"?


Cheers,

----------------------------------------------------------------------------
Michael Evans
----------------------------------------------------------------------------