title: Firebase Storage "ListAll" function result says there are no items
body: <p>I am using Firebase Storage to store reviews of songs. </p>
  
  <p>I try to get these reviews by using </p>
  
  <pre><code>  let reviews = Storage.storage().reference().child("users").child(self.thedelegate.currentid).child("reviews")
    reviews.listAll { (result, error) in
  ...
  </code></pre>
  
  <p>but the result says there are no items in the result. I checked for errors - no errors.</p>
  
  <p>It says the count of the result.items array is 0 when I print to the console. </p>
  
  <p>However, in my Firebase Console, the file directory exists, and there are 3 reviews stored in the 'reviews' folder. </p>
  
  <p>I have also made sure that</p>
  
  <pre><code>self.thedelegate.currentid
  </code></pre>
  
  <p>is printing out the correct user id. </p>
  
  <p>Here is the function code:</p>
  
  <pre><code> func loadreviews() {
  
        print("LOADING REVIEWS")
        print("CURRENT ID --- \(self.thedelegate.currentid)")
  
  
        let reviews = Storage.storage().reference().child("users").child(self.thedelegate.currentid).child("reviews")
        reviews.listAll { (result, error) in
             if error != nil { return }
  
             if result.items.count == 0 { print("THERE ARE NO REVIEWS") }  else  { print("THERE ARE REVIEWS") }
  
             for item in result.items {
  
                  print("CREATING NEW BCELL")
  
                  let newcell = BCell()
                  newcell.backgroundColor = .clear
                  newcell.selectionStyle = .none
                  newcell.intiailize()
  
  
                  Storage.storage().reference().child("users").child(self.thedelegate.currentid).child("reviews").child(item.name).child("songname").getData(maxSize: 4 * 1024) { (data, error) in
                       if error != nil { return }
                       let songname = String(data: data!, encoding: .utf8)
                       newcell.songlabel.text = songname!
                  }
                  Storage.storage().reference().child("users").child(self.thedelegate.currentid).child("reviews").child(item.name).child("artistname").getData(maxSize: 4 * 1024) { (data, error) in
                       if error != nil { return }
                       let artistname = String(data: data!, encoding: .utf8)
                       newcell.artistlabel.text = artistname!
                  }
                  Storage.storage().reference().child("users").child(self.thedelegate.currentid).child("reviews").child(item.name).child("review").getData(maxSize: 4 * 1024) { (data, error) in
                       if error != nil { return }
                       let review = String(data: data!, encoding: .utf8)
                       newcell.reviewlabel.text = review!
                  }
                  Storage.storage().reference().child("users").child(self.thedelegate.currentid).child("reviews").child(item.name).child("time").getData(maxSize: 4 * 1024 * 1024) { (data, error) in
                       if error != nil { return }
  
                       let stringint = String(data: data!, encoding: .utf8)
                       let interval = Int.init(stringint ?? "")
                       newcell.associatedtime = interval!
                       print("THE REVIEW TIME WAS : ")
                       print(interval!)
                  }
  
                  newcell.imageview.image = self.thedelegate.correctimage
                  self.reviewcells.append(newcell)
                  self.table.reloadData()
  
             }
        }
   }     
  </code></pre>
  
  <p>And the pictures of the console and Firebase Storage website</p>
  
  <p><img src="https://i.stack.imgur.com/BzlGN.png" alt="Firebase Storage sheet"></p>
  
  <p>console showing the correct user id</p>
  
  <p><img src="https://i.stack.imgur.com/P2oKr.png" alt="console showing the correct user id"></p>