> Adam, the following:
>
> sFilePath = listDeletaAt(sPath, listLast(sPath, "/"), "/");
>
> won't work because ListLAst() returns the value of the last element,

Sorry, yes, you're quite right. I was amidst hering my flatmate's
woes-of-the-day whilst trying to get away to the pub, and badly cutting and
pasting my own code.

listLen(), not listLast(), as you say.

--

Adam