mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 07:43:31 -07:00
Previously, an existing export could only be detected if it existed at the current file target path. However, if the name of the channel, the channel parent or the guild has changed or if the default file name formatting has changed, the existing export's file name would be different, and it could therefore not be detected. Therefore, the option to explicitly search for the existing export in the target directory has been added. If it's activated (and there's no existing export at the current file target path), all file names in the target directory will be compared to a regex that matches any file name the channel export (with the same date range) might have had in the past. If several existing exports have been detected, an error is logged and the channel export is aborted. Otherwise, it continues as before (only additionally moving the existing export files to the to the new file paths if they should be appended). Whether this new option is activated is currently hardcoded. The enum FileExistsHandling has been renamed to ExportExistsHandling to clarify that the setting applies to existing exports in general. If file names of a directory are needed, they are collected lazily and stored for future use in other channel exports to avoid unnecessary I/O operations. |
||
|---|---|---|
| .. | ||
| Commands | ||
| Utils/Extensions | ||
| DiscordChatExporter.Cli.csproj | ||
| Program.cs | ||