title: How do I fix SCS0018?
body: <p>Security Scan SCS0018 Warnings in Visual Studio are shown during the build. Currently, I am working on these warnings to get removed. I tried several MSDN sites but no luck. I have also read OWSAP but they are not clearly related to C#. Please find the image of Path Traversal warning.</p>
  <p><a href="https://i.stack.imgur.com/upMhK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/upMhK.png" alt="Path Traversal Warning Message" /></a></p>
  <p>Code:</p>
  <blockquote>
  <pre><code>   public void Move(string sourceFileName, string destinationFileName)
      {
          
          try
          {
              System.IO.File.Move(sourceFileName,destinationFileName);
          }
          catch (System.Exception e)
          {
          }
     }
  </code></pre>
  </blockquote>