title: How to get path of root directory of your project folder in Perfect 2.0?
body: <p>As you know for server side swift Perfect 2.0 framework is out. I was trying to get path for root directory but didn't have any luck yet.</p>
  
  <p><strong>Snippet 1</strong></p>
  
  <pre><code>let fileDir = Dir("/Resources/fileuploads")
  print(fileDir.path)
  </code></pre>
  
  <p>this code give me path as </p>
  
  <pre><code>/Resources/fileuploads
  </code></pre>
  
  <p><strong>Snippet 2</strong></p>
  
  <pre><code>let fileDir = Dir(Dir.workingDir.path + "Resources/fileuploads")
  print(fileDir.path)
  </code></pre>
  
  <p>this code gives me path as</p>
  
  <pre><code>/Users/username/Library/Developer/Xcode/DerivedData/projname-acxmbygsjkthxvbigpfoqesstidh/Build/Products/Debug/Resources/fileuploads/
  </code></pre>
  
  <p>However actual path where i want it, to point to is.</p>
  
  <pre><code>/Users/username/Documents/folderOne/folderTwo/projname/Resources/fileuploads/
  </code></pre>
  
  <p>where </p>
  
  <pre><code>/Users/username/Documents/folderOne/folderTwo/projname
  </code></pre>
  
  <p>is the path where my root folder of the project is located.</p>
  
  <p><strong>Question</strong> </p>
  
  <p>how do i get path to root folder of the project ?</p>