fix: Fixes linux not enumerating directories, and wrong spelling for migration files (#1049)
This commit is contained in:
parent
ff1b7aa994
commit
12404ba6f6
5 changed files with 7 additions and 4 deletions
|
|
@ -252,10 +252,13 @@ namespace Server
|
|||
if (IsLinux && !File.Exists(fullPath))
|
||||
{
|
||||
var fi = new FileInfo(fullPath);
|
||||
fullPath = fi.Directory!.EnumerateFiles(
|
||||
fi.Name,
|
||||
new EnumerationOptions { MatchCasing = MatchCasing.CaseInsensitive }
|
||||
).FirstOrDefault()?.FullName;
|
||||
if (fi.Directory != null && Directory.Exists(fi.Directory.FullName))
|
||||
{
|
||||
fullPath = fi.Directory.EnumerateFiles(
|
||||
fi.Name,
|
||||
new EnumerationOptions { MatchCasing = MatchCasing.CaseInsensitive }
|
||||
).FirstOrDefault()?.FullName;
|
||||
}
|
||||
}
|
||||
|
||||
if (File.Exists(fullPath))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue