Last updated on
Apr 27, 2021
|
Also applies to ColdFusion
Getting the current directory
You can get the current working directory by using the getWorkingDirectory() function.
Method summary
getWorkingDirectory() – Lookup for the current working directory
- returns – A String containing the path to the current working directory
- params
- None.
For instance,
<cfset pwd=cfclient.file.getWorkingDirectory()> |