aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.WebDashboard
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-01-26 22:08:04 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-01-28 22:09:56 +0100
commitd7c6d1625043fb69a90e7ccb24fc31a912c8a2d3 (patch)
tree516b929007f1539c1e1a8ad8cce3f1775c127380 /MediaBrowser.WebDashboard
parent3a831994f69bbde699a1a725b57d8fd1d7e98641 (diff)
Unwrapped CreateDirectory and DeleteDirectory
Diffstat (limited to 'MediaBrowser.WebDashboard')
-rw-r--r--MediaBrowser.WebDashboard/Api/DashboardService.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.cs
index db0011114..de759492e 100644
--- a/MediaBrowser.WebDashboard/Api/DashboardService.cs
+++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs
@@ -390,7 +390,7 @@ namespace MediaBrowser.WebDashboard.Api
{
try
{
- _fileSystem.DeleteDirectory(targetPath, true);
+ Directory.Delete(targetPath, true);
}
catch (IOException)
{
@@ -435,11 +435,11 @@ namespace MediaBrowser.WebDashboard.Api
private void CopyDirectory(string source, string destination)
{
- _fileSystem.CreateDirectory(destination);
+ Directory.CreateDirectory(destination);
//Now Create all of the directories
foreach (var dirPath in _fileSystem.GetDirectories(source, true))
- _fileSystem.CreateDirectory(dirPath.FullName.Replace(source, destination));
+ Directory.CreateDirectory(dirPath.FullName.Replace(source, destination));
//Copy all the files & Replaces any files with the same name
foreach (var newPath in _fileSystem.GetFiles(source, true))