title: If the file size is 0kb, it is not displayed on the gridview and the file is deleted
body: <p>I have a gridview that displays some files. I would like if the file size is 0 kb, then the file is not displayed and deleted, while other files are still displayed
  Code:</p>
  
  <pre><code>StorageFolder cover = await komik.GetFolderAsync("cover");
  foreach (StorageFile file in sortedfiles)
  {
      bool bukuada = true;
      Buku buku = new Buku();
      buku.Judul = file.DisplayName.ToString();
      BasicProperties pro = await file.GetBasicPropertiesAsync();
      if (pro.Size != 0)
      {
          StorageFile thumbFile = file;
          try
          {
              thumbFile = await cover.GetFileAsync(file.DisplayName.ToString() + ".jpg");
              BitmapImage bi = new BitmapImage();
              bi.SetSource(await thumbFile.OpenAsync(FileAccessMode.Read));
              buku.Cover = bi;
  
              datasource.Add(buku);
              loading.IsActive = false;
              this.itemGridView.ItemsSource = datasource;
          }
          catch
          {
  
          }
      }
  }
  </code></pre>
  
  <p>If I use the code above, then if there is a file whose size is 0 kb, then all files are not displayed. How do I get only 0 kb files that are not displayed and deleted, while others are still showing?</p>