title: How can I fix file.exists() on mac?
body: <p>I'm using Visual Studio Community 2017 for Mac and I'm having trouble dealing with C#'s file.exists() method. I'm also quite new to the language.</p>
  
  <pre><code>if (!File.Exists("Content/" + path)) {
      throw new FileNotFoundException("File " + path + " not found in Content folder.");
  }
  </code></pre>
  
  <p>Here I'm trying to see if an image file exists in a directory named "Content", but the method "File.Exists()" always returns false even though the file does exist in the directory.</p>
  
  <p>What's more, the code below this which will access the same "path" crashes the program because it doesn't detect the file (and yes, I'm using OpenTK as well but that's most likely irrelevant).</p>
  
  <pre><code>Bitmap bmp = new Bitmap("Content/" + path);
  </code></pre>
  
  <p>Some answers say that I may have spelling mistakes or unwanted spaces, but I know very well that this isn't happening with me.</p>
  
  <p>Some sources say to run the project as an administrator or "grant permissions" but even after days of searching and searching around the internet on how to do them I still haven't found anything helpful.</p>
  
  <p>Some sources talk about the idea that running in x86 gives different results to x64 and I should try building the program in 64-bit, but:</p>
  
  <ol>
  <li>I don't know how to do that and I haven't found any information which helps me with this.</li>
  <li>I'm not even sure what "x" I'm running the project on.</li>
  </ol>
  
  <p>How do I fix this problem in OSX?
  (I also hope that I've explained myself well because this could be a little complicated)</p>
  
  <p>EDIT #1: From the comments I've seen so far, I believe that it would be more helpful to show the hierarchy of my project</p>
  
  <pre><code>otk1 (Directory)
      otk1 (Directory)
          References (Directory)
          Packages (Directory)
          Content (Directory)
              image.jpg (Image file - The one I'm trying to open)
          ContentPipe.cs (Csharp file which tries to access the Content directory)
          GameClass.cs
          OpenTK.dll.config
          packages.config
          Program.cs
  </code></pre>