Added Permissions, Tags
[pithos-ms-client] / trunk / Pithos.Core / Agents / WorkflowAgent.cs
index 1580b28..7b00a2f 100644 (file)
@@ -80,13 +80,12 @@ namespace Pithos.Core.Agents
                         NetworkAgent.Post(new CloudUploadAction(accountInfo,info, fileState, accountInfo.BlockSize,
                             accountInfo.BlockHash));
                         break;
-                    case FileStatus.Deleted:
-                        string fileName = info.AsRelativeUrlTo(accountInfo.AccountPath);
-                        NetworkAgent.Post(new CloudDeleteAction(accountInfo,fileName, fileState));
+                    case FileStatus.Deleted:                       
+                        NetworkAgent.Post(new CloudDeleteAction(accountInfo,info, fileState));
                         break;
                     case FileStatus.Renamed:
-                        NetworkAgent.Post(new CloudMoveAction(accountInfo,CloudActionType.RenameCloud, state.OldFileName,
-                                                              state.OldPath, state.FileName, state.Path));
+                        NetworkAgent.Post(new CloudMoveAction(accountInfo,CloudActionType.RenameCloud, new FileInfo(state.OldPath),
+                                                              new FileInfo(state.Path)));
                         break;
                 }