get_current_dirget_current_dirGetCurrentDirGetCurrentDirget_current_dir (Operator)
Name
get_current_dirget_current_dirGetCurrentDirGetCurrentDirget_current_dir
— Get the current working directory.
Signature
Herror get_current_dir(char* DirName)
Herror T_get_current_dir(Htuple* DirName)
void GetCurrentDir(HTuple* DirName)
static HString HMisc::GetCurrentDir()
def get_current_dir() -> str
Description
get_current_dirget_current_dirGetCurrentDirGetCurrentDirget_current_dir
returns the current working directory in
DirNameDirNameDirNamedirNamedir_name
.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
DirNameDirNameDirNamedirNamedir_name
(output_control) filename.dir →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of current working directory.
Result
get_current_dirget_current_dirGetCurrentDirGetCurrentDirget_current_dir
returns the value 2 (
H_MSG_TRUE)
if the current
working directory could be determined. Otherwise, an exception is
raised.
Module
Foundation