Incorrect result with combine paths

Hi.
I have a project form .net core 2.
I get incorrect result with combine many paths.

ОС: Windows 10

SS version:

What I’m doing wrong?
Тhanks in advance.

That’s the expected result paths/URLs are always combined using a ‘/’ which most APIs support. If you want to replace the paths using back slashes, replace the string after the paths are combined.

To be honest I don’t quite understand why you need a virtual file system?
Not in order to have one interface for all platforms?
I write code on Windows and run on Linux, if for each OS I need to fix the path then why do I even need this feature? Maybe I do not understand correctly?
Correct me please if I am wrong.

Can you give an example of what you say to work not depending on OS?

Thanks.

Read the docs on Virtual File System it provides more than a File System abstraction and what allows access to multiple cascading file sources.

Thanks for the reply Demis! but my question was different )

Solved the problem this way, if someone will need it: