From bb8f83e3c5f60b6ad6df83315f86880b92daf39f Mon Sep 17 00:00:00 2001 From: Not Mr Flibble Date: Wed, 17 May 2017 00:16:56 +0100 Subject: [PATCH] Ignore dot files in the configuration directory. Various *nix-based editors create these as lock files when editing. --- ArchiSteamFarm/ASF.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArchiSteamFarm/ASF.cs b/ArchiSteamFarm/ASF.cs index 0cb91b31f..8986cb553 100644 --- a/ArchiSteamFarm/ASF.cs +++ b/ArchiSteamFarm/ASF.cs @@ -279,7 +279,7 @@ namespace ArchiSteamFarm { } string botName = Path.GetFileNameWithoutExtension(e.Name); - if (string.IsNullOrEmpty(botName)) { + if (string.IsNullOrEmpty(botName) || botName.StartsWith(".")) { return; } @@ -329,7 +329,7 @@ namespace ArchiSteamFarm { } string botName = Path.GetFileNameWithoutExtension(e.Name); - if (string.IsNullOrEmpty(botName)) { + if (string.IsNullOrEmpty(botName) || botName.StartsWith(".")) { return; } @@ -393,7 +393,7 @@ namespace ArchiSteamFarm { } string newBotName = Path.GetFileNameWithoutExtension(e.Name); - if (string.IsNullOrEmpty(newBotName)) { + if (string.IsNullOrEmpty(newBotName) || newBotName.StartsWith(".")) { return; }