set_current_dirset_current_dirSetCurrentDirSetCurrentDirset_current_dir (Operator)

Name

set_current_dirset_current_dirSetCurrentDirSetCurrentDirset_current_dir — Set the current working directory.

Signature

set_current_dir( : : DirName : )

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)

static void HOperatorSet.SetCurrentDir(HTuple dirName)

static void HMisc.SetCurrentDir(string dirName)

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

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