title: C# FileStream long paths
body: <p>I'm having problem with my program, I'm creating backup system (Client send changed, created and renamed files to server and save them to server) but i'm not allowed save long paths and server crash (I can avoid crash with try/catch ofc) but I want save too long paths. How I can do it with FileStream?</p>
  
  <p>My code:</p>
  
  <pre><code>user.CurrentFile.WriteStream = new FileStream(path + user.CurrentFile.FileName, FileMode.Create, FileAccess.Write, FileShare.None);
  </code></pre>