core: remove temp files directory when deleting storage (#2446)

This commit is contained in:
spaced4ndy
2023-05-16 15:05:18 +04:00
committed by GitHub
parent 4ee052e71e
commit 761fbf7757

View File

@@ -84,6 +84,8 @@ deleteStorage = do
removeFile chatDb
removeFile agentDb
mapM_ removePathForcibly filesPath
tmpPath <- readTVarIO =<< asks tempDirectory
mapM_ removePathForcibly tmpPath
data StorageFiles = StorageFiles
{ chatDb :: FilePath,