From d78c10ebb734edfb2ac5fd2f837407ee168449f9 Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Wed, 29 Jul 2020 20:47:58 +0300 Subject: [PATCH] Remove default cap on MakeUniqueFilePath --- DiscordChatExporter.Domain/Internal/PathEx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DiscordChatExporter.Domain/Internal/PathEx.cs b/DiscordChatExporter.Domain/Internal/PathEx.cs index d89c78a..309c3c9 100644 --- a/DiscordChatExporter.Domain/Internal/PathEx.cs +++ b/DiscordChatExporter.Domain/Internal/PathEx.cs @@ -15,7 +15,7 @@ namespace DiscordChatExporter.Domain.Internal public static string EscapePath(string path) => EscapePath(new StringBuilder(path)).ToString(); - public static string MakeUniqueFilePath(string baseFilePath, int maxAttempts = 100) + public static string MakeUniqueFilePath(string baseFilePath, int maxAttempts = int.MaxValue) { if (!File.Exists(baseFilePath)) return baseFilePath;