p$ = PathPart(path$)
path$ and returns it. The returned path part will always
end with a "/" or a ":" so that you can immediately add
a filename to it.
p$ = PathPart("Data/Gfx/Test.jpg")
Print(p$)
The above code prints "Data/Gfx" to the screen.