mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +00:00
Use IFileSystem
This commit is contained in:
parent
1d367712bb
commit
fc5c6c0404
12 changed files with 111 additions and 50 deletions
|
|
@ -704,6 +704,12 @@ namespace Emby.Server.Implementations.IO
|
|||
return Directory.EnumerateFileSystemEntries(path, "*", GetEnumerationOptions(recursive));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public virtual bool Exists(string path)
|
||||
{
|
||||
return Directory.Exists(path) || File.Exists(path);
|
||||
}
|
||||
|
||||
private EnumerationOptions GetEnumerationOptions(bool recursive)
|
||||
{
|
||||
return new EnumerationOptions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue