mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-11-15 18:42:21 +00:00
Use IFileSystem
This commit is contained in:
1 parent
1d367712bb
commit
fc5c6c0404
12 files changed
+111
-50
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user