A bit more logging for delete file (in recycle bin)

This commit is contained in:
Mark McDowall 2013-07-30 02:09:48 +02:00
commit 60177abf51
2 changed files with 13 additions and 1 deletions

View file

@ -2,6 +2,7 @@
using System.IO;
using NLog;
using NzbDrone.Common;
using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Common.Messaging;
using NzbDrone.Core.Configuration;
using NzbDrone.Core.MediaFiles.Commands;
@ -68,6 +69,12 @@ namespace NzbDrone.Core.MediaFiles
if (String.IsNullOrWhiteSpace(recyclingBin))
{
logger.Info("Recycling Bin has not been configured, deleting permanently.");
if (!OsInfo.IsLinux)
{
logger.Trace(_diskProvider.GetFileAttributes(path));
}
_diskProvider.DeleteFile(path);
logger.Trace("File has been permanently deleted: {0}", path);
}