fix conv file delete issue
This commit is contained in:
parent
0e82c735ff
commit
65514f5589
|
|
@ -22,7 +22,7 @@ public partial class ConversationService
|
|||
if (dialogs.IsNullOrEmpty()) continue;
|
||||
|
||||
var content = GetConversationContent(dialogs);
|
||||
if (string.IsNullOrEmpty(content)) continue;
|
||||
if (string.IsNullOrWhiteSpace(content)) continue;
|
||||
|
||||
contents.Add(content);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ public partial class BotSharpFileService
|
|||
foreach (var messageId in messageIds)
|
||||
{
|
||||
var dir = GetConversationFileDirectory(conversationId, messageId);
|
||||
if (string.IsNullOrEmpty(dir)) continue;
|
||||
if (!ExistDirectory(dir)) continue;
|
||||
|
||||
Thread.Sleep(100);
|
||||
Directory.Delete(dir, true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue