set_current_dirset_current_dirSetCurrentDirSetCurrentDirset_current_dir (Operator)
Name
set_current_dirset_current_dirSetCurrentDirSetCurrentDirset_current_dir
— Set the current working directory.
Signature
Herror set_current_dir(const char* DirName)
Herror T_set_current_dir(const Htuple DirName)
void SetCurrentDir(const HTuple& DirName)
static void HMisc::SetCurrentDir(const HString& DirName)
static void HMisc::SetCurrentDir(const char* DirName)
static void HMisc::SetCurrentDir(const wchar_t* DirName)
(
Windows only)
def set_current_dir(dir_name: str) -> None
Description
set_current_dirset_current_dirSetCurrentDirSetCurrentDirSetCurrentDirset_current_dir
sets the current working directory to the
directory DirNameDirNameDirNameDirNamedirNamedir_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
DirNameDirNameDirNameDirNamedirNamedir_name
(input_control) filename.dir →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of current working directory to be set.
Result
set_current_dirset_current_dirSetCurrentDirSetCurrentDirSetCurrentDirset_current_dir
returns the value 2 (
H_MSG_TRUE)
if the current
working directory could be set. Otherwise, an exception is raised.
Module
Foundation