Method
PathHelper.FilesystemCombinePaths
FilesystemCombinePaths(bool, char, params string[]) #
Normalizes and combines the specified file-system paths into one.
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 #
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 #
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.