C# 클래스 NSwag.CodeGeneration.Utilities.PathUtilities

Provides file path utility methods.
파일 보기 프로젝트 열기: NSwag/NSwag

공개 메소드들

메소드 설명
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