Xylocarpro/dsh-plugin-recycle-bin0

dsh-plugin-recycle-bin

Enforce recycle-bin-only deletion on Windows: block del/rm/Remove-Item and other disk-erase commands, forbid automatically emptying the recycle bin, and stop + ask the user when the recycle bin or disk is full.

包名
dsh-plugin-recycle-bin
版本
0.1.3
许可证
MIT
最近更新
2026年8月29日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Xylocarpro/dsh-plugin-recycle-bin

配置

字段类型默认含义
enabledbooleantrue总开关。
blockDestructiveCommandsbooleantrue阻断硬盘删除命令。
forbidEmptyRecycleBinbooleantrue禁止清空回收站。
forbidWipebooleantrue禁止安全擦除器。
minFreeBytesnumber104857600剩余空间低于此值停止删除。
reserveBytesnumber52428800回收后保留的剩余空间。
pwshPathstring""可选:显式 pwsh 路径。

使用

file_trash(paths: ["C:\\Project\\draft.md", "C:\\Project\\old-temp"])
trash_status(path: "C:\\Project")    # path 可选
  • file_trash 返回 deleted / skipped / blockedFull / message;满则暂停询问。
  • trash_status 返回回收站支持情况、剩余/总空间与安全阈值。