C# Класс NSwag.CodeGeneration.Utilities.PathUtilities

Provides file path utility methods.
Показать файл Открыть проект

Открытые методы

Метод Описание
ExpandFileWildcards ( IEnumerable paths ) : IEnumerable

Expands the given wildcards (** or *) in the paths.

ExpandFileWildcards ( string path ) : IEnumerable

Expands the given wildcards (** or *) in the path.

MakeAbsolutePath ( string relativePath, string relativeTo ) : string

Converts a relative path to an absolute path.

MakeRelativePath ( string absolutePath, string relativeTo ) : string

Converts an absolute path to a relative path if possible.

Описание методов

ExpandFileWildcards() публичный статический Метод

Expands the given wildcards (** or *) in the paths.
public static ExpandFileWildcards ( IEnumerable paths ) : IEnumerable
paths IEnumerable The files path with wildcards.
Результат IEnumerable

ExpandFileWildcards() публичный статический Метод

Expands the given wildcards (** or *) in the path.
public static ExpandFileWildcards ( string path ) : IEnumerable
path string The file path with wildcards.
Результат IEnumerable

MakeAbsolutePath() публичный статический Метод

Converts a relative path to an absolute path.
public static MakeAbsolutePath ( string relativePath, string relativeTo ) : string
relativePath string The relative path.
relativeTo string The current directory.
Результат string

MakeRelativePath() публичный статический Метод

Converts an absolute path to a relative path if possible.
The path of the two files doesn't have any common base.
public static MakeRelativePath ( string absolutePath, string relativeTo ) : string
absolutePath string The absolute path.
relativeTo string The current directory.
Результат string