Revision 97d149c1 trunk/Pithos.Core/PithosMonitor.cs

b/trunk/Pithos.Core/PithosMonitor.cs
463 463
            if (uris == null)
464 464
                return new List<string>();
465 465

  
466
            return (from uri in uris
467
                    let relativePath = _accountInfo.StorageUri
468
                        .MakeRelativeUri(uri)
469
                        .RelativeUriToFilePath()
470
                        //Trim the account name
471
                    select Path.Combine(RootPath, relativePath.After(_accountInfo.UserName + '\\'))).ToList();            
466
            var own = (from uri in uris
467
                       where uri.ToString().StartsWith(_accountInfo.StorageUri.ToString())
468
                                   let relativePath = _accountInfo.StorageUri.MakeRelativeUri(uri).RelativeUriToFilePath()
469
                                   //Trim the account name
470
                                   select Path.Combine(RootPath, relativePath.After(_accountInfo.UserName + '\\'))).ToList();
471
            var others= (from uri in uris
472
                         where !uri.ToString().StartsWith(_accountInfo.StorageUri.ToString())
473
                                   let relativePath = _accountInfo.StorageUri.MakeRelativeUri(uri).RelativeUriToFilePath()
474
                                   //Trim the account name
475
                                   select Path.Combine(RootPath,"others-shared", relativePath)).ToList();
476
            return own.Union(others).ToList();            
472 477
        }
473 478

  
474 479

  

Also available in: Unified diff