I have a folder of images that were imported with Create Folder Reference method, since I want to call images with URLForResoure for transfer to Watch. Before I transfer Images I would like to count them in folder. I was able to get folderURL path with this code:
let documentsURL = NSFileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask)[0]
let folderURL = documentsURL.URLByAppendingPathComponent("Folder/SubFolder", isDirectory: true)
but can not get access to files inside this folder.
I want to access files and count them either with same prefix or inside subfolder.
Please help.