首先得把alist的数据库切换成MySQL,切换方法参考:alist切换MySQL数据库-有搞头-有搞头笔记 (giraff.fun)

切换后,通过phpMyAdmin事件功能,定时清理这些文件,即清理 x_search_nodes 表中,parent 值中包含 #recycle 和 @eaDir 的行。


选择数据库,点击 事件-添加事件

image.png

设置内容

image.png

然后 把事件计划状态 改为 开

image.png

当索引后的数据库中索引到包含 #recycle 或 @eaDir 的内容时, 通过此事件会每个10秒清理一次。

绕过alist通过设置元数据实现隐藏搜索结果中文件或文件夹的目的。