|
|
|
@ -77,7 +77,7 @@ public class LocalFileSystem : ILocalFileSystem |
|
|
|
try |
|
|
|
try |
|
|
|
{ |
|
|
|
{ |
|
|
|
return Directory.EnumerateFiles(folder, "*", SearchOption.TopDirectoryOnly) |
|
|
|
return Directory.EnumerateFiles(folder, "*", SearchOption.TopDirectoryOnly) |
|
|
|
.Where(path => !path.StartsWith("._")); |
|
|
|
.Where(path => !Path.GetFileName(path).StartsWith("._")); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (UnauthorizedAccessException) |
|
|
|
catch (UnauthorizedAccessException) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -100,7 +100,7 @@ public class LocalFileSystem : ILocalFileSystem |
|
|
|
try |
|
|
|
try |
|
|
|
{ |
|
|
|
{ |
|
|
|
return Directory.EnumerateFiles(folder, searchPattern, SearchOption.TopDirectoryOnly) |
|
|
|
return Directory.EnumerateFiles(folder, searchPattern, SearchOption.TopDirectoryOnly) |
|
|
|
.Where(path => !path.StartsWith("._")); |
|
|
|
.Where(path => !Path.GetFileName(path).StartsWith("._")); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (UnauthorizedAccessException) |
|
|
|
catch (UnauthorizedAccessException) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|