Browse Source

proper fix

pull/1261/head
Jason Dove 3 years ago
parent
commit
a54e37a648
  1. 4
      ErsatzTV.Core/Metadata/LocalFileSystem.cs

4
ErsatzTV.Core/Metadata/LocalFileSystem.cs

@ -77,7 +77,7 @@ public class LocalFileSystem : ILocalFileSystem @@ -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 @@ -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)
{

Loading…
Cancel
Save