mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:06:12 +00:00
Split DirectoryExists and FileExists
This commit is contained in:
parent
71a9ae3150
commit
1b3e56bae3
6 changed files with 30 additions and 17 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue