mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-11-03 12:45:49 +00:00
Split DirectoryExists and FileExists
This commit is contained in:
1 parent
71a9ae3150
commit
1b3e56bae3
6 files changed
+30
-17
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user