Fixed handling for Content_Type "application/folder" in SelectiveSync and other locations
[pithos-ms-client] / trunk / Pithos.Client.WPF / SelectiveSynch / SelectiveSynchViewModel.cs
index dd1cc21..cae3de2 100644 (file)
@@ -53,8 +53,7 @@ using Pithos.Interfaces;
 namespace Pithos.Client.WPF.SelectiveSynch
 {
     class SelectiveSynchViewModel:Screen
-    {
-        private const string DirectoryType = "application/directory";
+    {        
         private readonly IEventAggregator _events ;
 
 
@@ -105,7 +104,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(_monitor.UserName, container.Name)                                                     
-                                                     where dir.Content_Type == DirectoryType
+                                                     where dir.IsDirectory
                                                      select dir).ToTree()
                                   };
             var ownFolders = dirs.ToList();
@@ -121,7 +120,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.Content_Type==DirectoryType
+                                                                        where folder.IsDirectory
                                                                         select folder).ToTree()
                                                         }).ToList()
                              };