NSFile Manager URL is nil ?

Hello ,


Can someone please shed some light on what this message means and/or point me to where I can find more info about this log entry.


*** -[NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:]: URL is nil


Thank you in advance for any help.


Best regards,

Paul

The first question is are you calling -[NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:]? It sounds like you might not be given that you are asking on the Swift forum.


If you aren't calling it directly, all you can do is Report a Bug asking for this to be fixed, once you've tracked down what causes the log to print in your application.

The obvious thing to do is investigate why your URL parameter is nil. Maybe created with a malformed or invalid file path, or whatever.

NSFile Manager URL is nil ?
 
 
Q