I have the following code which on iOS is returning as if the specified folder has no subfolders (which it does).
While on macOS it does work, any idea why?
func listFolders(at path: String) -> [Folder] {
do {
let originFolder = try Folder(path: path)
var folders = [Folder]()
originFolder.subfolders.forEach { folder in
folders.append(folder)
}
return folders
} catch {
print(error)
}
return []
}
Hi!
I have the following code which on iOS is returning as if the specified folder has no subfolders (which it does). While on macOS it does work, any idea why?
PS: I'm using an external SSD in both cases