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()>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy