New SQLite version
[pithos-ms-client] / trunk / Pithos.Core / Agents / WorkflowAgent.cs
index a6cd3c2..5ff697e 100644 (file)
@@ -143,7 +143,7 @@ namespace Pithos.Core.Agents
                                 {
                                     //We reach this point only if the app closed before propagating a rename to the server
                                     Log.WarnFormat("Unfinished rename [{0}]",state.Path);
-                                    StatusKeeper.SetFileState(state.Path,FileStatus.Conflict,FileOverlayStatus.Conflict);
+                                    StatusKeeper.SetFileState(state.Path,FileStatus.Conflict,FileOverlayStatus.Conflict, "Rename without old path");
                                     break;
                                 }
                                 FileSystemInfo oldInfo = Directory.Exists(state.OldPath)
@@ -233,6 +233,8 @@ namespace Pithos.Core.Agents
                 var account = accountInfo;
                 var pendingEntries = (from state in FileState.Queryable
                                      where state.FileStatus != FileStatus.Unchanged &&
+                                            state.FileStatus != FileStatus.Forbidden &&
+                                            state.FileStatus != FileStatus.Conflict &&
                                            !state.FilePath.StartsWith(cachePath) &&
                                            !state.FilePath.EndsWith(".ignore") &&
                                            state.FilePath.StartsWith(account.AccountPath)