Skip to content

Modelica.Utilities.Files.createDirectory fails if the directory does not exist #3660

@sjoelund

Description

@sjoelund

Modelica.Utilities.Files.createDirectory calls fullPathName, which fails if the path does not exist (on Linux). This means createDirectory does not work. Some possible solutions:

  • Change fullPathName to never fail (revert to the old code with getcwd)
  • Change createDirectory to not call fullPathName (but this would not fix older MSL versions)
  • Add an argument to fullPathName to not fail (return the input perhaps), and create this additional file in the external sources

Metadata

Metadata

Labels

L: C-SourcesIssue addresses Modelica/Resources/C-SourcesbugCritical/severe issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions