title: could not find a part of the path c# when save file Linux server to windows server
body: <p>My services codes are on <code>Linux</code> server. I am getting this error:</p>
  
  <pre><code>'could not find a part of the path'
  </code></pre>
  
  <p>when trying to save a file on Linux server to <code>Windows</code> server. But I can save a file from Windows server to Windows server similar path. </p>
  
  <pre><code>    string path = "";
              int lastIndexOfSlash = file.FilePath.LastIndexOf('/');
              if (lastIndexOfSlash != -1)
              {
                  path = file.FilePath.Substring(0, lastIndexOfSlash);
              }
  
              Directory.CreateDirectory(fileSystemBaseAddress + "\\" + path);
              string lastPath = Path.Combine(fileSystemBaseAddress, file.FilePath);
              System.IO.File.WriteAllBytes(lastPath, file.FileContent);
  </code></pre>