How to handle file name in System.IO classes in a cross-platform manner to make it work on Windows and Linux?
System.IO
For example, I write this code that works
You can also use Path.DirectorySeparatorChar as below:
Console.WriteLine("..{0}Data{0}uploads{0}{{filename}}", Path.DirectorySeparatorChar);
Reference: MSDN