mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-29 17:23:04 +00:00
Clean up
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user