aboutsummaryrefslogtreecommitdiff
path: root/Emby.Drawing
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-01-26 22:59:53 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-01-28 22:10:00 +0100
commit581a7fe078002785b9ba628ec139a42d678cdf25 (patch)
treeab536538f4af5293300f8003e964e0828cb320c8 /Emby.Drawing
parenta430568082b55f2f989924c59e0729808b39226c (diff)
Unwrapped `MoveDirectory`, `DirectoryExists`, `FileExists` & removed `MoveFile`
Diffstat (limited to 'Emby.Drawing')
-rw-r--r--Emby.Drawing/ImageProcessor.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.cs
index c87380218..4901561eb 100644
--- a/Emby.Drawing/ImageProcessor.cs
+++ b/Emby.Drawing/ImageProcessor.cs
@@ -244,7 +244,7 @@ namespace Emby.Drawing
try
{
- if (!_fileSystem.FileExists(cacheFilePath))
+ if (!File.Exists(cacheFilePath))
{
if (options.CropWhiteSpace && !SupportsTransparency(originalImagePath))
{
@@ -626,7 +626,7 @@ namespace Emby.Drawing
try
{
// Check again in case of contention
- if (_fileSystem.FileExists(enhancedImagePath))
+ if (File.Exists(enhancedImagePath))
{
return (enhancedImagePath, treatmentRequiresTransparency);
}