proper fix

This commit is contained in:
Jason Dove
2023-04-26 19:35:40 -05:00
parent c0656114b8
commit a54e37a648
+2 -2
View File
@@ -77,7 +77,7 @@ public class LocalFileSystem : ILocalFileSystem
try
{
return Directory.EnumerateFiles(folder, "*", SearchOption.TopDirectoryOnly)
.Where(path => !path.StartsWith("._"));
.Where(path => !Path.GetFileName(path).StartsWith("._"));
}
catch (UnauthorizedAccessException)
{
@@ -100,7 +100,7 @@ public class LocalFileSystem : ILocalFileSystem
try
{
return Directory.EnumerateFiles(folder, searchPattern, SearchOption.TopDirectoryOnly)
.Where(path => !path.StartsWith("._"));
.Where(path => !Path.GetFileName(path).StartsWith("._"));
}
catch (UnauthorizedAccessException)
{