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)

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

Combine(String, String, PathType)

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

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.

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.

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

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

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