summaryrefslogtreecommitdiff
path: root/src/SMAPI.Toolkit/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-11 23:20:20 -0400
committerGitHub <noreply@github.com>2022-04-11 23:20:20 -0400
commit9fbed0fa1f28a9b0fe0b952a78b10e2d475adb03 (patch)
treefc57c1e55d0f8887d2fbfc30a2873ded8281906d /src/SMAPI.Toolkit/Framework
parent1e61309d3dce484d5b646b1a8d15c825beac813f (diff)
parent25e0b4b8ada9ce7aa02f9eafaf5e0609977685c4 (diff)
downloadSMAPI-9fbed0fa1f28a9b0fe0b952a78b10e2d475adb03.tar.gz
SMAPI-9fbed0fa1f28a9b0fe0b952a78b10e2d475adb03.tar.bz2
SMAPI-9fbed0fa1f28a9b0fe0b952a78b10e2d475adb03.zip
Merge pull request #839 from nuztalgia/develop
Ignore dot-prefixed files when scanning for mods
Diffstat (limited to 'src/SMAPI.Toolkit/Framework')
-rw-r--r--src/SMAPI.Toolkit/Framework/ModScanning/ModScanner.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI.Toolkit/Framework/ModScanning/ModScanner.cs b/src/SMAPI.Toolkit/Framework/ModScanning/ModScanner.cs
index 2af30092..12333c4e 100644
--- a/src/SMAPI.Toolkit/Framework/ModScanning/ModScanner.cs
+++ b/src/SMAPI.Toolkit/Framework/ModScanning/ModScanner.cs
@@ -306,8 +306,8 @@ namespace StardewModdingAPI.Toolkit.Framework.ModScanning
/// <param name="entry">The file or folder.</param>
private bool IsRelevant(FileSystemInfo entry)
{
- // ignored file extension
- if (entry is FileInfo file && this.IgnoreFileExtensions.Contains(file.Extension))
+ // ignored file extensions and any files starting with "."
+ if ((entry is FileInfo file) && (this.IgnoreFileExtensions.Contains(file.Extension) || file.Name.StartsWith(".")))
return false;
// ignored entry name