PLCnext API Documentation 25.0.2.69
|
Static Public Member Functions | |
static String | GetDirectoryName (const String &path) |
Get the directory name of a path. More... | |
static String | GetFileTitle (const String &path) |
Get title of a file. More... | |
static String | GetFileName (const String &path) |
Get name of a file. More... | |
static String | GetExtension (const String &path) |
Get extension of a file. More... | |
static String | ChangeExtension (const String &path, const String &newExtension) |
Change extension of a file. More... | |
static String | GetFullPath (const String &path) |
Get name of a path. More... | |
static String | GetPathRoot (const String &path) |
Get root of a file path. More... | |
static String | Combine (const String &path1, const String &path2) |
Combines two paths. More... | |
static String | GetCanonicalPath (const String &path) |
Get the canonical path. More... | |
static bool | AreEqual (const String &path1, const String &path2) |
Checks whether two paths are equal. More... | |
static bool | IsRelative (const String &path) |
Checks whether a path is relative. More... | |
static bool | IsAbsolute (const String &path) |
Checks whether a path is absolute. More... | |
Checks whether two paths are equal.
path1 | First path to compare. |
path2 | Second path to compare. |
|
static |
Change extension of a file.
path | Fully qualified path of the file. |
newExtension | New extension of the file including the dot. |
Examples: ChangeExtension("/opt/plcnext/my.dir/file.a.txt", ".b") returns "/opt/plcnext/my.dir/file.a.b". ChangeExtension("/opt/plcnext/my.dir/file", ".b") returns "/opt/plcnext/my.dir/file.b".
|
static |
Combines two paths.
path1 | First path. |
path2 | Second path. |
Example: Combine("/opt/plcnext/my.dir", "file.a.txt") returns "/opt/plcnext/my.dir/file.a.txt".
Get the canonical path.
path | Fully qualified path. |
Example: GetCanonicalPath("/etc/../opt/plcnext/./my.dir/file.a.txt") returns "/opt/plcnext/my.dir/file.a.txt".
Get the directory name of a path.
path | Fully qualified path. |
Example: GetDirectoryName("/opt/plcnext/my.dir/file.a.txt") returns "/opt/plcnext/my.dir".
Get extension of a file.
path | Fully qualified path of the file. |
Examples: GetExtension("/opt/plcnext/my.dir/file.a.txt") returns ".txt". GetExtension("/opt/plcnext/my.dir/file") returns an empty String.
Get name of a file.
path | Fully qualified path of the file. |
Examples: GetFileName("/opt/plcnext/my.dir/file.a.txt") returns "file.a.txt". GetFileName("/opt/plcnext/my.dir/file") returns "file".
Get title of a file.
path | Fully qualified path of the file. |
Examples: GetFileTitle("/opt/plcnext/my.dir/file.a.txt") returns "file.a". GetFileTitle("/opt/plcnext/my.dir/file") returns "file".
Get name of a path.
path | Fully qualified path. |
Example: GetFullPath("/opt/plcnext/my.dir/file.a.txt") returns "/opt/plcnext/my.dir/file.a.txt".
Get root of a file path.
path | Fully qualified path. |
Example: GetFullPath("/opt/plcnext/my.dir/file.a.txt") returns "/".
|
static |
Checks whether a path is absolute.
path | Fully qualified path. |
|
static |
Checks whether a path is relative.
path | Fully qualified path. |