Split DirectoryExists and FileExists

This commit is contained in:
Cody Robibero
2022-03-02 19:55:44 -07:00
parent 71a9ae3150
commit 1b3e56bae3
6 changed files with 30 additions and 17 deletions

View File

@@ -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)