Home
The Toolkit for Online Communities
15939 Community Members, 0 members online, 2453 visitors today
Log In Register

util_current_directory

OpenACS Home : ACS API Browser : util_current_directory

util_current_directory (public)

util_current_directory
Defined in packages/acs-tcl/tcl/utilities-procs.tcl

Returns the directory of the current URL.

We can't just use [file dirname [ad_conn url]] because we want /foo/bar/ to return /foo/bar/ and not /foo .

Also, we want to return directory WITH the trailing slash so that programs that use this proc don't have to treat the root directory as a special case.

[ show source ]
Show another procedure: