aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/IO/ManagedFileSystem.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2022-02-28 16:16:25 -0700
committerCody Robibero <cody@robibe.ro>2022-02-28 17:14:33 -0700
commitfc5c6c0404b06accb3617c0d4f181bb7c344119c (patch)
treeb7cb3d3ac444aca21fe4a1f360325c2951339fee /Emby.Server.Implementations/IO/ManagedFileSystem.cs
parent1d367712bb2ec87a1d36f9b23deb2c0ad5fa7279 (diff)
Use IFileSystem
Diffstat (limited to 'Emby.Server.Implementations/IO/ManagedFileSystem.cs')
-rw-r--r--Emby.Server.Implementations/IO/ManagedFileSystem.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/IO/ManagedFileSystem.cs b/Emby.Server.Implementations/IO/ManagedFileSystem.cs
index 4f8a52f41..ee6846ad3 100644
--- a/Emby.Server.Implementations/IO/ManagedFileSystem.cs
+++ b/Emby.Server.Implementations/IO/ManagedFileSystem.cs
@@ -704,6 +704,12 @@ namespace Emby.Server.Implementations.IO
return Directory.EnumerateFileSystemEntries(path, "*", GetEnumerationOptions(recursive));
}
+ /// <inheritdoc />
+ public virtual bool Exists(string path)
+ {
+ return Directory.Exists(path) || File.Exists(path);
+ }
+
private EnumerationOptions GetEnumerationOptions(bool recursive)
{
return new EnumerationOptions