Method FilesystemCombinePaths
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
boolSpecifies if relative paths should be merged and ".." returns should be respected.
separator
charSpecifies 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.