Skip to content

get_current_dirGetCurrentDirGetCurrentDirget_current_dirget_current_dir🔗

Short description🔗

get_current_dirGetCurrentDirGetCurrentDirget_current_dirget_current_dir — Get the current working directory.

Signature🔗

get_current_dir( out filename.dir DirName )void GetCurrentDir( HTuple* DirName )static void HOperatorSet.GetCurrentDir( out HTuple dirName )def get_current_dir( ) -> str

Herror get_current_dir( char* DirName )

Herror T_get_current_dir( Htuple* DirName )

static HString HMisc::GetCurrentDir( )

static string HMisc.GetCurrentDir( )

Description🔗

get_current_dirGetCurrentDir returns the current working directory in DirNamedirNamedir_name.

Execution information🔗

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🔗

DirNamedirNamedir_name (output_control) filename.dir → (string)HTuple (HString)HTuple (string)strHtuple (char*)

Name of current working directory.

Result🔗

get_current_dirGetCurrentDir returns the value 2 (H_MSG_TRUE) if the current working directory could be determined. Otherwise, an exception is raised.

Module🔗

Foundation