How to get contents of directory

In iOS programming you have to list the contents of the folder. I am using contentsOfDirectory() method of the FileManager class