functionsplitPathName
Split path name in directory, file name kernel, file name extension
Extends from Modelica.Icons.Function (Icon for functions).
Information
Syntax
(directory, name, extension) = Files.splitPathName(pathName);
Description
Function splitPathName(..) splits a path name into its parts.
Example
(directory, name, extension) = Files.splitPathName("C:/user/test/input.txt")
-> directory = "C:/user/test/"
name = "input"
extension = ".txt"
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | pathName | Absolute or relative file or directory name |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | directory | Name of the directory including a trailing '/' | |
| String | name | Name of the file without the extension | |
| String | extension | Extension of the file name. Starts with '.' |