aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/FileOrganization
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-01-12 22:46:44 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-01-12 22:46:44 -0500
commitd8d5dd487326dd3fccf4e9f30cd8f7e3783fcfda (patch)
treecf9950d32ee194d72a367c836a70dfb8f4e61401 /MediaBrowser.Server.Implementations/FileOrganization
parentf55217406985ad21da44aa523353f33e3f720ccd (diff)
make channel access opt-in rather than opt out
Diffstat (limited to 'MediaBrowser.Server.Implementations/FileOrganization')
-rw-r--r--MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs4
-rw-r--r--MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs2
-rw-r--r--MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs2
3 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs b/MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs
index 611f887ee..cfc3e2b23 100644
--- a/MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs
+++ b/MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs
@@ -209,7 +209,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
try
{
- File.Delete(path);
+ _fileSystem.DeleteFile(path);
}
catch (IOException ex)
{
@@ -315,7 +315,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
{
try
{
- File.Delete(result.OriginalPath);
+ _fileSystem.DeleteFile(result.OriginalPath);
}
catch (Exception ex)
{
diff --git a/MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs b/MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs
index 7c5269678..a6116ab09 100644
--- a/MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs
+++ b/MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs
@@ -85,7 +85,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
_logger.Info("Requested to delete {0}", result.OriginalPath);
try
{
- File.Delete(result.OriginalPath);
+ _fileSystem.DeleteFile(result.OriginalPath);
}
catch (Exception ex)
{
diff --git a/MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs b/MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs
index cf120f147..e3c8e6d25 100644
--- a/MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs
+++ b/MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs
@@ -166,7 +166,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
{
try
{
- File.Delete(file.FullName);
+ _fileSystem.DeleteFile(file.FullName);
}
catch (Exception ex)
{