Make IsRelevant return false for any files starting with "."
This commit is contained in:
parent
2a05e28782
commit
25e0b4b8ad
|
@ -306,8 +306,8 @@ namespace StardewModdingAPI.Toolkit.Framework.ModScanning
|
||||||
/// <param name="entry">The file or folder.</param>
|
/// <param name="entry">The file or folder.</param>
|
||||||
private bool IsRelevant(FileSystemInfo entry)
|
private bool IsRelevant(FileSystemInfo entry)
|
||||||
{
|
{
|
||||||
// ignored file extension
|
// ignored file extensions and any files starting with "."
|
||||||
if (entry is FileInfo file && this.IgnoreFileExtensions.Contains(file.Extension))
|
if ((entry is FileInfo file) && (this.IgnoreFileExtensions.Contains(file.Extension) || file.Name.StartsWith(".")))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// ignored entry name
|
// ignored entry name
|
||||||
|
|
Loading…
Reference in New Issue