List function chaining

I need to store uploaded log files outside the web root. I used the following code successfully to create a path within the web root but can’t chain it further. Is there a variable like “this” that refers to the input string?


I would like to do something like this to delete the last 2 elements in the list:


If you’re just looking to target a relative directory above the web root, try ExpandPath():

- webroot
-- script.cfm


privateFolderPath = ExpandPath( "../privateFolder" );

Elegant. Thank you.