Sisk

Method

PathHelper.FilesystemCombinePaths

Namespace
Sisk.Core.Helpers
Assembly
Sisk.Core.dll

FilesystemCombinePaths(bool, char, params string[]) #

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

C#
public static string FilesystemCombinePaths(bool allowRelativeReturn, char separator, params 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 string[]

Specifies the array of paths to combine.

Returns #

string

FilesystemCombinePaths(bool, char, ReadOnlySpan<string>) #

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

C#
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.

C#
public static string FilesystemCombinePaths(params string[] paths)

Parameters #

paths string[]

Specifies the array of paths to combine.

Returns #

string

Type to search the documentation and the API reference.