I'm writing a programm that runs on a Linux machine and needs to connect to a Windows SMB share.
Using Path.Join(path1, path2)
it will use the forward slash /
as directory separator. However the SMB share is on Windows and needs the backslash \
as separator.
Is there some easy inbuilt way to concatenate paths using a defined directory separator without just calling .Replace('/', '\\')
on the result?