FolderItem from a relative path

I am not understanding something about GetRelative and GetSaveInfo. I have a variable, BasePath which is a FolderItem, and then I have a String representing a relative path, in the native format. For example, I have a BasePath representing /Users/johndoe/Desktop and then I have a String which is a relative path to BasePath, Tmp/Hi.txt.

How can I combined the two to arrive at a legitimate path to /Users/johndoe/Desktop/Tmp/Hi.txt, bearing in mind that my relative path may be Tmp/Something/Else/Blah.txt or even ../../Hi.txt

Thanks for any help!

Try a simple GetFolderItem(phat1+path2)

Path1 and Path2 are Strings

[quote=23034:@EDGARD LANDWEHRKAMP]Try a simple GetFolderItem(phat1+path2)

Path1 and Path2 are Strings[/quote]

Hm, that seems too simple, thanks! I believe I’ll have to deal with cross platform path separators? i.e. \\\\ on Win32 vs. / elsewhere?

See if this helps…

Dim myFile as folderitem
myFile = SpecialFolder.Documents.Child(“my File”)
If myFile <> nil then
If not myFile.exists then
Dim TOS as TextOutputStream
TOS = TextOutputStream.Append(myFile)
TOS = Nil
Dim myFileShellpath as String
myFileShellpath = myFile.Shellpath
msgbox myFileShellpath
end if
end if

Lennox