Revision 5e646964 trunk/Pithos.Core/Agents/SelectiveUris.cs

b/trunk/Pithos.Core/Agents/SelectiveUris.cs
61 61
            SelectivePaths[account.AccountKey] = UrisToFilePaths(account,uris);
62 62
        }
63 63

  
64
        public bool IsSelected(ObjectInfo info)
64
        public bool IsSelected(AccountInfo account,ObjectInfo info)
65 65
        {
66 66
            //Shared folders should NOT be synced if selective syncing is disabled
67 67
            var isShared = info.IsShared??false;
68 68
            if (info.StorageUri == null)
69 69
                return true;
70
            var selectiveEnabled = IsSelectiveEnabled(info.AccountKey);
70
            var selectiveEnabled = IsSelectiveEnabled(account.AccountKey);
71 71
            if (!selectiveEnabled)
72 72
                return !isShared;
73 73

  
74 74
            List<Uri> filterUris;
75
            return !SelectiveUris.TryGetValue(info.AccountKey, out filterUris) 
75
            return !SelectiveUris.TryGetValue(account.AccountKey, out filterUris) 
76 76
                || filterUris.Count ==0
77 77
                || filterUris.Any(f => info.Uri.IsAtOrDirectlyBelow(f));
78 78
        }

Also available in: Unified diff