Go to the source code of this file.
◆ Absolute() [1/2]
◆ Absolute() [2/2]
| Path Absolute |
( |
path | , |
|
|
base_path | ) |
◆ BaseName()
Return the base name of a file path with no directory component and no file extension.
Uses Path.SplitPath() to decompose the path, then strips the extension from the filename component. If the file has no extension, the filename is returned as-is.
- Parameters
-
| path | (string) Full or relative path from which to extract the base name |
- Returns
- (string) The file name with no directory path and no extension
- Note
- Documentation generated by AI on 2026-03-03
◆ CreateDirectories()
| Path CreateDirectories |
( |
path | | ) |
|
◆ DirectoryExists()
| Path DirectoryExists |
( |
path | | ) |
|
◆ FileExists()
◆ GetBaseName()
| Path GetBaseName |
( |
path | | ) |
|
◆ GetEscapedPath()
| Path GetEscapedPath |
( |
path | | ) |
|
◆ GetFileName()
| Path GetFileName |
( |
path | | ) |
|
◆ GetParent()
◆ Join()
◆ MoveFile()
| Path MoveFile |
( |
source | , |
|
|
target | ) |
◆ RemoveDirectories()
| Path RemoveDirectories |
( |
path | | ) |
|
◆ RemoveFile()
◆ SplitPath()
Split a path string into its component parts: parent directory, filename, and extension.
Decomposes a filesystem path into three components using pattern matching that handles both forward slash and backslash directory separators. The parent path will end with a directory separator. If the file has no extension, the extension component will equal the filename component.
- Parameters
-
| path | (string) The filesystem path to split |
- Returns
- (table) A three-element array: {parent_path (string), filename (string), extension (string)}
--
Get the base
name (filename including extension, no directory):
--
Get the parent directory:
--
Get the grandparent directory:
GUIModule Notebooks Get()
Retrieve a notebook object by name from the Notebooks collection.
Path SplitPath(path)
Split a path string into its component parts: parent directory, filename, and extension.
name("m3")
Handle M3 plasma cutting start failure by reporting an alarm or error based on machine state.
- Note
- Documentation generated by AI on 2026-03-03