alist-org / alist

🗂️A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs. / 一个支持多存储的文件列表/WebDAV程序,使用 Gin 和 Solidjs。
https://alist.nn.ci
GNU Affero General Public License v3.0
39.3k stars 5.1k forks source link

重命名某文件为同目录下已经存在的文件,没有任何提示,已存在的文件被直接覆盖。 #6630

Open secrethcb opened 1 week ago

secrethcb commented 1 week ago

Please make sure of the following things

AList Version / AList 版本

v3.35.0 Latest May 23, 2024

Driver used / 使用的存储驱动

本机存储

Describe the bug / 问题描述

同一个目录下存在2个文件: a文件.zip b文件.zip

如果把 b文件.zip 重命名为 a文件.zip

原来的 a文件.zip 就没了,而且没有任何提示。

上传时存在同样的问题,在上传的时候,如果目标已经存在,没有任何提示直接被覆盖。

Reproduction / 复现链接

rename-overwrite1

Config / 配置

storeConf alistconf.json

Logs / 日志

No response

welcome[bot] commented 1 week ago

Thanks for opening your first issue here! Be sure to follow the issue template!

secrethcb commented 1 week ago

文件少的时候,这可以直接看出来,文件多的时候,没注意的话就丢文件了。