Revision 81c5c310 trunk/Pithos.Core/Agents/PollAgent.cs
b/trunk/Pithos.Core/Agents/PollAgent.cs | ||
---|---|---|
404 | 404 |
var deletedFiles = new List<FileSystemInfo>(); |
405 | 405 |
foreach (var objectInfo in cloudFiles) |
406 | 406 |
{ |
407 |
Log.DebugFormat("Handle deleted [{0}]",objectInfo.Uri); |
|
407 |
if (Log.IsDebugEnabled) |
|
408 |
Log.DebugFormat("Handle deleted [{0}]",objectInfo.Uri); |
|
408 | 409 |
var relativePath = objectInfo.RelativeUrlToFilePath(accountInfo.UserName); |
409 | 410 |
var item = FileAgent.GetFileAgent(accountInfo).GetFileSystemInfo(relativePath); |
410 |
Log.DebugFormat("Will delete [{0}] for [{1}]", item.FullName,objectInfo.Uri); |
|
411 |
if (Log.IsDebugEnabled) |
|
412 |
Log.DebugFormat("Will delete [{0}] for [{1}]", item.FullName,objectInfo.Uri); |
|
411 | 413 |
if (item.Exists) |
412 | 414 |
{ |
413 | 415 |
if ((item.Attributes & FileAttributes.ReadOnly) == FileAttributes.ReadOnly) |
... | ... | |
415 | 417 |
item.Attributes = item.Attributes & ~FileAttributes.ReadOnly; |
416 | 418 |
|
417 | 419 |
} |
420 |
|
|
421 |
|
|
422 |
Log.DebugFormat("Deleting {0}", item.FullName); |
|
423 |
|
|
418 | 424 |
var directory = item as DirectoryInfo; |
419 | 425 |
if (directory!=null) |
420 | 426 |
directory.Delete(true); |
Also available in: Unified diff