From a54e37a648ca3ee8491f5d2d97640be37f5b8d6f Mon Sep 17 00:00:00 2001 From: Jason Dove Date: Wed, 26 Apr 2023 19:35:40 -0500 Subject: [PATCH] proper fix --- ErsatzTV.Core/Metadata/LocalFileSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ErsatzTV.Core/Metadata/LocalFileSystem.cs b/ErsatzTV.Core/Metadata/LocalFileSystem.cs index 747ee9f25..8ed6b6b69 100644 --- a/ErsatzTV.Core/Metadata/LocalFileSystem.cs +++ b/ErsatzTV.Core/Metadata/LocalFileSystem.cs @@ -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) {