aboutsummaryrefslogtreecommitdiff
path: root/Emby.IsoMounting
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-01-30 16:57:15 +0100
committerGitHub <noreply@github.com>2019-01-30 16:57:15 +0100
commit1ea219bf3f5c0708c3afa5fa2d897ca5212b5e04 (patch)
treeb3478e7210659ef7fa1e305e814c188ffd152fea /Emby.IsoMounting
parenta709cbdc64de36a1ce989636a19344af61d9026d (diff)
parentffcf6bdd3aaad5068decf84b0400e433fdb8323c (diff)
Merge branch 'master' into culture
Diffstat (limited to 'Emby.IsoMounting')
-rw-r--r--Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs b/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs
index 62c83c011..a6fc53953 100644
--- a/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs
+++ b/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs
@@ -39,7 +39,7 @@ namespace IsoMounter
_logger = logger;
ProcessFactory = processFactory;
- MountPointRoot = FileSystem.DirectorySeparatorChar + "tmp" + FileSystem.DirectorySeparatorChar + "Emby";
+ MountPointRoot = Path.DirectorySeparatorChar + "tmp" + Path.DirectorySeparatorChar + "Emby";
_logger.LogDebug(
"[{0}] System PATH is currently set to [{1}].",
@@ -214,9 +214,9 @@ namespace IsoMounter
{
string path = test.Trim();
- if (!string.IsNullOrEmpty(path) && FileSystem.FileExists(path = Path.Combine(path, name)))
+ if (!string.IsNullOrEmpty(path) && File.Exists(path = Path.Combine(path, name)))
{
- return FileSystem.GetFullPath(path);
+ return Path.GetFullPath(path);
}
}
@@ -326,7 +326,7 @@ namespace IsoMounter
try
{
- FileSystem.CreateDirectory(mountPoint);
+ Directory.CreateDirectory(mountPoint);
}
catch (UnauthorizedAccessException)
{
@@ -376,7 +376,7 @@ namespace IsoMounter
try
{
- FileSystem.DeleteDirectory(mountPoint, false);
+ Directory.Delete(mountPoint, false);
}
catch (Exception ex)
{
@@ -454,7 +454,7 @@ namespace IsoMounter
try
{
- FileSystem.DeleteDirectory(mount.MountedPath, false);
+ Directory.Delete(mount.MountedPath, false);
}
catch (Exception ex)
{