Revision 174bbb6e trunk/Pithos.Core/Agents/WorkflowAgent.cs
b/trunk/Pithos.Core/Agents/WorkflowAgent.cs | ||
---|---|---|
139 | 139 |
NetworkAgent.Post(new CloudDeleteAction(accountInfo, info, fileState)); |
140 | 140 |
break; |
141 | 141 |
case FileStatus.Renamed: |
142 |
if (state.OldPath == null) |
|
143 |
{ |
|
144 |
//We reach this point only if the app closed before propagating a rename to the server |
|
145 |
Log.WarnFormat("Unfinished rename [{0}]",state.Path); |
|
146 |
StatusKeeper.SetFileState(state.Path,FileStatus.Conflict,FileOverlayStatus.Conflict); |
|
147 |
break; |
|
148 |
} |
|
142 | 149 |
FileSystemInfo oldInfo = Directory.Exists(state.OldPath) |
143 | 150 |
? (FileSystemInfo) new DirectoryInfo(state.OldPath) |
144 | 151 |
: new FileInfo(state.OldPath); |
Also available in: Unified diff