Skip to content

自定义媒体库崩溃后残留的临时文件没有清理入口 #5017

Description

@PraiseZhu

来源:#4728 Greptile 线程(apps/desktop/src/main/cindy-brain/libraryVault.ts:522)。

发生了什么:#4728 为了在自定义媒体库目录掉线或被替换时不误删用户文件,打开自定义库时整段跳过 sweepStaleTmp()。但普通写入和流式写入仍会在 .cindy-library/tmp 下产生 .tmp / .stream 暂存文件;进程崩溃后这些文件没有别的清理入口,也不计入 Library 用量,会一直占磁盘。

影响:只影响使用自定义 Library 目录、且写入过程中崩溃过的用户;不影响数据正确性。

修法思路:在 held-parent / binding 复核通过之后,对自定义库的 tmp 目录做一次 fd-relative 的安全清理,只删超龄的 .tmp / .stream,不在复核前动目录。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions