make channel access opt-in rather than opt out

This commit is contained in:
Luke Pulverenti
2015-01-12 22:46:44 -05:00
parent f552174069
commit d8d5dd4873
72 changed files with 399 additions and 241 deletions

View File

@@ -183,7 +183,7 @@ namespace MediaBrowser.Providers.Manager
currentFile.Attributes &= ~FileAttributes.Hidden;
}
currentFile.Delete();
_fileSystem.DeleteFile(currentFile.FullName);
}
}
finally

View File

@@ -349,7 +349,7 @@ namespace MediaBrowser.Providers.Manager
currentFile.Attributes &= ~FileAttributes.Hidden;
}
currentFile.Delete();
_fileSystem.DeleteFile(currentFile.FullName);
deleted = true;
}
}

View File

@@ -245,7 +245,7 @@ namespace MediaBrowser.Providers.Subtitles
try
{
File.Delete(path);
_fileSystem.DeleteFile(path);
}
finally
{

View File

@@ -1108,7 +1108,7 @@ namespace MediaBrowser.Providers.TV
.EnumerateFiles("*.xml", SearchOption.AllDirectories)
.ToList())
{
file.Delete();
_fileSystem.DeleteFile(file.FullName);
}
}
catch (DirectoryNotFoundException)