Revision 97f51ab0

b/trunk/Pithos.Client.WPF/Properties/AssemblyInfo.cs
12 12
[assembly: AssemblyConfiguration("")]
13 13
[assembly: AssemblyCompany("GRNet")]
14 14
[assembly: AssemblyProduct("Pithos Client for Windows")]
15
[assembly: AssemblyCopyright("Copyright © GRNet 2011")]
15
[assembly: AssemblyCopyright("Copyright © GRNet 2011-2012")]
16 16
[assembly: AssemblyTrademark("")]
17 17
[assembly: AssemblyCulture("")]
18
[assembly: AssemblyInformationalVersion("2012-01-10")]
18
[assembly: AssemblyInformationalVersion("2012-01-24")]
19 19

  
20 20
// Setting ComVisible to false makes the types in this assembly not visible 
21 21
// to COM components.  If you need to access a type in this assembly from 
......
52 52
// You can specify all the values or you can default the Build and Revision Numbers 
53 53
// by using the '*' as shown below:
54 54
// [assembly: AssemblyVersion("1.0.*")]
55
[assembly: AssemblyVersion("1.0.0.27002")]
55
[assembly: AssemblyVersion("1.0.0.27004")]
b/trunk/Pithos.Core/Agents/NetworkAgent.cs
630 630
            if (_firstPoll) return;
631 631

  
632 632
            var deleteCandidates = from state in FileState.Queryable
633
                                   let stateUrl = FileInfoExtensions.FromPath(state.FilePath)
634
                                       .AsRelativeUrlTo(accountInfo.AccountPath)
635
                                   where state.Modified <= pollTime &&
636
                                         !cloudFiles.Any(r => r.Name == stateUrl)
633
                                   where state.Modified <= pollTime && state.FilePath.StartsWith(accountInfo.AccountPath)
637 634
                                   select state;
638 635

  
639 636
            foreach (var deleteCandidate in deleteCandidates)
640 637
            {
641
                File.Delete(deleteCandidate.FilePath);
642
                StatusKeeper.ClearFileStatus(deleteCandidate.FilePath);
638
                var localFile = FileInfoExtensions.FromPath(deleteCandidate.FilePath);
639
                var relativeFilePath=localFile.AsRelativeTo(accountInfo.AccountPath);
640
                if (!cloudFiles.Any(r => Path.Combine(r.Container, r.Name) == relativeFilePath))
641
                {
642
                    localFile.Delete();
643
                    StatusKeeper.ClearFileStatus(deleteCandidate.FilePath);
644
                }
643 645
            }
644 646
        }
645 647

  

Also available in: Unified diff