C# Class NSwag.CodeGeneration.Utilities.PathUtilities

Provides file path utility methods.
Afficher le fichier Open project: NSwag/NSwag

Méthodes publiques

Méthode Description
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.

Method Details

ExpandFileWildcards() public static méthode

Expands the given wildcards (** or *) in the paths.
public static ExpandFileWildcards ( IEnumerable paths ) : IEnumerable
paths IEnumerable The files path with wildcards.
Résultat IEnumerable

ExpandFileWildcards() public static méthode

Expands the given wildcards (** or *) in the path.
public static ExpandFileWildcards ( string path ) : IEnumerable
path string The file path with wildcards.
Résultat IEnumerable

MakeAbsolutePath() public static méthode

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.
Résultat string

MakeRelativePath() public static méthode

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.
Résultat string