PathUtilities Class

Summary

Provides utility methods for handling paths
Namespace
NBuildKit.MsBuild.Tasks.Core.FileSystem
Base Types
  • object
graph TD Base0["object"]-->Type Type["PathUtilities"] class Type type-node

Syntax

public static class PathUtilities

Methods

Name Value Summary
AppendDirectorySeparatorCharToDirectory(string) string
Appends the directory separator character at the end of the string if it doesn't already exist.
static
BaseDirectory(string, bool) string
Returns the base directory for a given path expression. The base directory is considered to be the directory of the file if there are no wild cards, or the directory path before the first set of wild cards.
static
GetAbsolutePath(string) string
Returns the absolute path for the given path item.
static
GetAbsolutePath(string, string) string
Returns the absolute path for the given path item.
static
GetDirectoryPathRelativeToDirectory(string, string) string
Creates a relative path for a directory based on a given directory.
static
GetFilePathRelativeToDirectory(string, string) string
Creates a relative path for a file based on a given directory.
static
IncludedPaths(string, IEnumerable<string>, string) IEnumerable<string>
Returns a collection containing all paths that match the path expression.
static
IncludedPaths(string, string) IEnumerable<string>
Returns a collection containing all paths that match the path expression.
static