.OpenModelica.Scripting.cd

Changes the working directory.

Information

Changes the working directory to the given filesystem path (which may be either relative or absolute). Returns the new working directory on success or a message on failure.

If the given path is the empty string, the function simply returns the current working directory.

Interface

function cd
  input String newWorkingDirectory = "";
  output String workingDirectory;
end cd;

Generated at 2025-04-18T18:20:08Z by OpenModelicaOpenModelica 1.25.0 using GenerateDoc.mos