diff options
| author | Cody Robibero <cody@robibe.ro> | 2022-03-02 19:55:44 -0700 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2022-03-02 19:55:44 -0700 |
| commit | 1b3e56bae32db452ae4859c533ebdf6740a937cf (patch) | |
| tree | 816d3b7754367529176abd6e1c51985c36aa5e41 /Emby.Server.Implementations/IO/ManagedFileSystem.cs | |
| parent | 71a9ae315006254eeea6e86cba07c981013c6957 (diff) | |
Split DirectoryExists and FileExists
Diffstat (limited to 'Emby.Server.Implementations/IO/ManagedFileSystem.cs')
| -rw-r--r-- | Emby.Server.Implementations/IO/ManagedFileSystem.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/IO/ManagedFileSystem.cs b/Emby.Server.Implementations/IO/ManagedFileSystem.cs index ee6846ad3..399ece7fd 100644 --- a/Emby.Server.Implementations/IO/ManagedFileSystem.cs +++ b/Emby.Server.Implementations/IO/ManagedFileSystem.cs @@ -705,9 +705,15 @@ namespace Emby.Server.Implementations.IO } /// <inheritdoc /> - public virtual bool Exists(string path) + public virtual bool DirectoryExists(string path) { - return Directory.Exists(path) || File.Exists(path); + return Directory.Exists(path); + } + + /// <inheritdoc /> + public virtual bool FileExists(string path) + { + return File.Exists(path); } private EnumerationOptions GetEnumerationOptions(bool recursive) |
