aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/IO/ManagedFileSystem.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2022-03-04 08:13:58 +0100
committerGitHub <noreply@github.com>2022-03-04 08:13:58 +0100
commit136eab9b1eb56e9332b40721264f2720b97ab6c1 (patch)
treebf1cb8fe88ca9d35645e878ab4a1a64b0975f918 /Emby.Server.Implementations/IO/ManagedFileSystem.cs
parentf712c554abb0e4e568bb2e7db2440003bbe3e747 (diff)
parent1b3e56bae32db452ae4859c533ebdf6740a937cf (diff)
Merge pull request #7370 from crobibero/internal-metadata-path
Only add internal files if the internal metadata path exists
Diffstat (limited to 'Emby.Server.Implementations/IO/ManagedFileSystem.cs')
-rw-r--r--Emby.Server.Implementations/IO/ManagedFileSystem.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/IO/ManagedFileSystem.cs b/Emby.Server.Implementations/IO/ManagedFileSystem.cs
index 4f8a52f41..399ece7fd 100644
--- a/Emby.Server.Implementations/IO/ManagedFileSystem.cs
+++ b/Emby.Server.Implementations/IO/ManagedFileSystem.cs
@@ -704,6 +704,18 @@ namespace Emby.Server.Implementations.IO
return Directory.EnumerateFileSystemEntries(path, "*", GetEnumerationOptions(recursive));
}
+ /// <inheritdoc />
+ public virtual bool DirectoryExists(string path)
+ {
+ return Directory.Exists(path);
+ }
+
+ /// <inheritdoc />
+ public virtual bool FileExists(string path)
+ {
+ return File.Exists(path);
+ }
+
private EnumerationOptions GetEnumerationOptions(bool recursive)
{
return new EnumerationOptions