Skip to content

The Free Software Media System - Server Backend & API

Merge branch 'master' into nullable3

Bond_009fc049caba2ed
diff --cc MediaBrowser.Api/EnvironmentService.cs
index 10726e2aaf,d199ce1544..82d471412d
--- a/MediaBrowser.Api/EnvironmentService.cs
+++ b/MediaBrowser.Api/EnvironmentService.cs
@@@ -253,15 -258,16 +253,10 @@@ namespace MediaBrowser.Ap
return false;
}
- if (!request.IncludeDirectories && isDirectory)
- {
- return false;
- }
-
- return true;
+ return request.IncludeDirectories || !isDirectory;
});
- return entries.Select(f => new FileSystemEntryInfo
- {
- Name = f.Name,
- Path = f.FullName,
- Type = f.IsDirectory ? FileSystemEntryType.Directory : FileSystemEntryType.File
-
- });
+ return entries.Select(f => new FileSystemEntryInfo(f.Name, f.FullName, f.IsDirectory ? FileSystemEntryType.Directory : FileSystemEntryType.File));
}
public object Get(GetParentPath request)