title: Swift get Documents Directory returns empty String
body: <p>According to <a href="https://stackoverflow.com/questions/24055146/how-to-find-nsdocumentdirectory-in-swift">How to find NSDocumentDirectory in swift?</a>  I wrote the next code:</p>
  
  <pre><code>let documentsPath = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as String
  let files = NSFileManager().enumeratorAtPath(documentsPath)
  var myString:String = "/"
  while let file: AnyObject = files?.nextObject() {
      myString += (file as String + "/")
  }
  println(myString)
  </code></pre>
  
  <p>But, actually the problem is that, when I debug the program, documentsPath equals to (String) "", after executing <code>NSSearchPathForDirectoriesInDomains</code> command. Besides, I'm trying to do this not in MainViewController, I'm trying to execute this command in TableViewController.</p>
  
  <p><img src="https://i.stack.imgur.com/S21KF.png" alt="enter image description here"></p>
  
  <p>However, it works in playground;
  It doesn't work for any project that I create</p>
  
  <pre><code>let docdir = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as String + "Test.txt"
  </code></pre>
  
  <p>returns the correct path, wtf?</p>