Fix for missing directories
[pithos-ms-client] / trunk / Pithos.Client.WPF / SelectiveSynch / SelectiveSynchViewModel.cs
index 8520ca1..0aca1a0 100644 (file)
@@ -109,8 +109,7 @@ namespace Pithos.Client.WPF.SelectiveSynch
                                   {
                                       DisplayName = container.Name,
                                       Uri=new Uri(client.StorageUrl,String.Format(@"{0}/{1}",Account.AccountName, container.Name)),
-                                      Directories = (from dir in client.ListObjects(AccountName, container.Name)                                                     
-                                                     where dir.IsDirectory
+                                      Directories = (from dir in client.ListObjects(AccountName, container.Name)                                                                                                          
                                                      select dir).ToTree()
                                   };
             var ownFolders = dirs.ToList();
@@ -125,8 +124,7 @@ namespace Pithos.Client.WPF.SelectiveSynch
                                                         {
                                                             DisplayName=container.Name,
                                                             Uri = new Uri(client.StorageUrl, "../" + account.name + "/" + container.Name),
-                                                            Directories=(from folder in client.ListObjects(account.name,container.Name)
-                                                                        where folder.IsDirectory
+                                                            Directories=(from folder in client.ListObjects(account.name,container.Name)                                                                        
                                                                         select folder).ToTree()
                                                         }).ToList()
                              };