Definition:
|
string s = current_dir()
|
Description:
|
Return the name of the current working directory.
|
pwa/p2js:
|
Not supported.
|
Comments:
|
As shown below, get_proper_dir(".") may sometimes be a slightly better alternative to current_dir(),
although it does not matter which is passed to join_path().
|
Example:
|
s = current_dir() -- eg `C:\Users\Pete\My Documents`
s = get_proper_dir(".") -- eg `C:\Users\Pete\My Documents\`
|
Implementation:
|
See builtins\pcurrdir.e (an autoinclude) for details of the actual implementation.
|
See Also:
|
dir,
chdir,
getenv,
get_proper_dir,
join_path
|