September 12th, 2003, 02:34 PM
I know I can use
to get the name of a file -- the last entry after the "/" in the path to the file, culled from the web address.
But, I really want to get the name of the *directory* that the file is in. Is there a function called something like
September 14th, 2003, 08:41 PM
This should do it:
#listGetAt( cgi.script_name, ( listLen( cgi.script_name, '/' ) - 1 ), '/' )#
September 16th, 2003, 09:22 AM
Thanks ... I also figured out that
will also work to get me the directory name I want, if the path to the file is only one level deep.