This commit is contained in:
Tyrrrz
2023-08-30 18:43:12 +03:00
parent 3740d64601
commit c422ac2351
11 changed files with 33 additions and 35 deletions

View File

@@ -147,12 +147,10 @@ public abstract class ExportCommandBase : DiscordCommandBase
var isValidOutputPath =
// Anything is valid when exporting a single channel
channels.Count <= 1
||
// When using template tokens, assume the user knows what they're doing
OutputPath.Contains('%')
||
|| OutputPath.Contains('%')
// Otherwise, require an existing directory or an unambiguous directory path
Directory.Exists(OutputPath)
|| Directory.Exists(OutputPath)
|| PathEx.IsDirectoryPath(OutputPath);
if (!isValidOutputPath)