PathWrapper Class

Definition

Helper class to deal with Path manipulation and handles XI paths as well. We could take ServerConnection as a parameter and get the PathSeparator from it but these might be used in offline situations too

public static class PathWrapper
type PathWrapper = class
Public Class PathWrapper
Inheritance
PathWrapper

Methods

Combine(String, String, PathType)

Combine 2 path strings. Needed to handle XI path as well.

Combine(String, String)

Combine 2 path strings. Needed to handle XI path as well.

GetDirectoryName(String, PathType)

Returns the directory string given a path. Handles XI path. It is a simple wrapper so it will be Garbage-In|Garbage-out.

GetDirectoryName(String)

Returns the directory string given a path. Handles XI path. It is a simple wrapper so it will be Garbage-In|Garbage-out.

IsRooted(String, PathType)

Determines if the path includes a root, such as a UNC path or a drive letter on Windows, or begins with / on Linux

IsRooted(String)

Determines if the path includes a root, such as a UNC path or a drive letter on Windows, or begins with / on Linux If the path starts with / the path is treated as a Linux path, otherwise as a Windows path

IsXIPath(String)

Given a path returns true if the path is a XI path

PathSeparatorFromServerConnection(ServerConnection)

Returns the appropriate path separator string for the given server connection

Applies to