             self.currentRequest = nil
 
             guard let contents = response.contents else { return }
+            
             let items = contents.flatMap { CloudItem(dictionary: $0) }
 
-            self.items.append(contentsOf: items)
+            self.items?.append(contentsOf: items)
             self.pageToken = response.nextToken
             self.tableView.reloadData()
         }


    override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {

        guard let item = items[safe: UInt(indexPath.row)] else { return }

        if item.isFolder {
            let scene = CloudSourceDetailScene(filestack: filestack,

    var pageToken: String?
    var storeOptions: StorageOptions!

    private var items: [CloudItem]? = nil
    private var currentRequest: CancellableRequest?

    private let thumbnailCache: NSCache<NSURL, UIImage> = {
