I've copied a folder into the documents directory, and I'm able to enumerate the directory's contents, but when I check if the enumerated URL exists and is readable, I get false. How do I read and use these files?
let imagesURL = copyPath.appendingPathComponent("images", isDirectory: true) guard let fileEnumerator = FileManager.default.enumerator(at: imagesURL, includingPropertiesForKeys: nil, options: FileManager.DirectoryEnumerationOptions()) else { return } while let file = fileEnumerator.nextObject() { guard let filepath = file as? NSURL else { continue } print(filepath.absoluteString!) let isReadable = FileManager.default.isReadableFile(atPath: filepath.absoluteString!) let exists = FileManager.default.fileExists(atPath: filepath.absoluteString!) print("isReadable: \(isReadable), exists: \(exists)") }