aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/IO/IFileSystem.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 /MediaBrowser.Model/IO/IFileSystem.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 'MediaBrowser.Model/IO/IFileSystem.cs')
-rw-r--r--MediaBrowser.Model/IO/IFileSystem.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/MediaBrowser.Model/IO/IFileSystem.cs b/MediaBrowser.Model/IO/IFileSystem.cs
index 7207795b0..786b20e9e 100644
--- a/MediaBrowser.Model/IO/IFileSystem.cs
+++ b/MediaBrowser.Model/IO/IFileSystem.cs
@@ -200,5 +200,19 @@ namespace MediaBrowser.Model.IO
void SetAttributes(string path, bool isHidden, bool readOnly);
IEnumerable<FileSystemMetadata> GetDrives();
+
+ /// <summary>
+ /// Determines whether the directory exists.
+ /// </summary>
+ /// <param name="path">The path.</param>
+ /// <returns>Whether the path exists.</returns>
+ bool DirectoryExists(string path);
+
+ /// <summary>
+ /// Determines whether the file exists.
+ /// </summary>
+ /// <param name="path">The path.</param>
+ /// <returns>Whether the path exists.</returns>
+ bool FileExists(string path);
}
}