User-1035552022 posted
Why can't IFileProvider get files located in wwwroot when the application is running under systemctl?
var localpath = _fileProvider.GetDirectoryContents(@"/wwwroot");
foreach (var item in localpath)
{
_logger.LogInformation($@"localpath:{ item.PhysicalPath}");
if the application is run as dotnet <appName>.dll then the files are found