Table of Contents

Method FilesystemCombinePaths

Namespace
Sisk.Core.Routing
Assembly
Sisk.Core.dll

FilesystemCombinePaths(bool, char, ReadOnlySpan<string>)

Normalizes and combines the specified file-system paths into one.

public static string FilesystemCombinePaths(bool allowRelativeReturn, char separator, ReadOnlySpan<string> paths)

Parameters

allowRelativeReturn bool

Specifies if relative paths should be merged and ".." returns should be respected.

separator char

Specifies the path separator character.

paths ReadOnlySpan<string>

Specifies the array of paths to combine.

Returns

string

FilesystemCombinePaths(params string[])

Normalizes and combines the specified file-system paths into one, using the default environment directory separator char.

public static string FilesystemCombinePaths(params string[] paths)

Parameters

paths string[]

Specifies the array of paths to combine.

Returns

string