title: Drag & Drop StorageFolders in UWP Windows 10 Apps
body: <p>At this moment the examples of Drag and Drop are just for StorageFiles like images, etc. But what happens with Folders.</p>
  
  <p>I have success implemented file and multiple files but when I try with a folder and read its items it returns 0 files, my code:</p>
  
  <pre><code>if (e.DataView.Contains(StandardDataFormats.StorageItems))
  {
  var items = await e.DataView.GetStorageItemsAsync();
  
  bool hasfolders = false;
  
  foreach (var item in items)
  {
      if (item is StorageFile)
      {
          var newFavorite = await FavoriteFromFile(item as StorageFile, groupcategory.Key);
          if (newFavorite != null)
              newFavorites.Add(newFavorite);
      }
      else if(item is StorageFolder)
      {
          var favs = await FavoritesFromFolder(item as StorageFolder, groupcategory.Key);
          hasfolders = true;
      }
  }
  ...
  </code></pre>
  
  <p>And inside FromFolder:</p>
  
  <pre><code>  private async Task&lt;List&lt;Favorite&gt;&gt; FavoritesFromFolder(StorageFolder folder, Category cat)
      {
          List&lt;Favorite&gt; ret = new List&lt;Favorite&gt;();
  
          foreach (var item in await folder.GetItemsAsync())
          {
  </code></pre>
  
  <p>Here returns 0 items, so might be it is not implemented or supported.</p>