getWorkingDir
getWorkingDir(
)
=> t_currentDir
Description
Returns the current working directory as a string.
The result is put into a ~/prefixed form if possible by testing for commonality with the current user’s home directory. For example, ~/test would be returned in preference to /usr/mnt/user1/test, assuming that the home directory for user1 is /usr/mnt/user1 and the current working directory is /usr1/mnt/user1/test.
Ensure that the logged-in user has execute permissions for the directory.
Arguments
Value Returned
Examples
getWorkingDir()
=> "~/project/cpu/layout"
Related Topics
Return to top