Revision 268bec7f trunk/Pithos.Client.WPF/SelectiveSynch/SelectiveSynchViewModel.cs

b/trunk/Pithos.Client.WPF/SelectiveSynch/SelectiveSynchViewModel.cs
53 53
namespace Pithos.Client.WPF.SelectiveSynch
54 54
{
55 55
    class SelectiveSynchViewModel:Screen
56
    {
57
        private const string DirectoryType = "application/directory";
56
    {        
58 57
        private readonly IEventAggregator _events ;
59 58

  
60 59

  
......
105 104
                                      DisplayName = container.Name,
106 105
                                      Uri=new Uri(client.StorageUrl,String.Format(@"{0}/{1}",Account.AccountName, container.Name)),
107 106
                                      Directories = (from dir in client.ListObjects(_monitor.UserName, container.Name)                                                     
108
                                                     where dir.Content_Type == DirectoryType
107
                                                     where dir.IsDirectory
109 108
                                                     select dir).ToTree()
110 109
                                  };
111 110
            var ownFolders = dirs.ToList();
......
121 120
                                                            DisplayName=container.Name,
122 121
                                                            Uri = new Uri(client.StorageUrl, "../" + account.name + "/" + container.Name),
123 122
                                                            Directories=(from folder in client.ListObjects(account.name,container.Name)
124
                                                                        where folder.Content_Type==DirectoryType
123
                                                                        where folder.IsDirectory
125 124
                                                                        select folder).ToTree()
126 125
                                                        }).ToList()
127 126
                             };                                                          

Also available in: Unified diff