AlistGo / AlistGo/alist

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

未關閉
#6,630 9 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Go
星號
50.2k
分支
7.9k
平均合併
7 天 21 小時
30 天內合併 PR
6

描述

### Please make sure of the following things

- [X] I have read the [documentation](https://alist.nn.ci).
我已经阅读了[文档](https://alist.nn.ci)。

- [X] I'm sure there are no duplicate issues or discussions.
我确定没有重复的issue或讨论。

- [x] I'm sure it's due to `AList` and not something else(such as [Network](https://alist.nn.ci/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host) ,`Dependencies` or `Operational`).
我确定是`AList`的问题,而不是其他原因(例如[网络](https://alist.nn.ci/zh/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host),`依赖`或`操作`)。

- [x] I'm sure this issue is not fixed in the latest version.
我确定这个问题在最新版本中没有被修复。

### 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](https://github.com/alist-org/alist/assets/22924386/5867ff19-e3e4-443d-ab44-6c1305e48c3b)

### Config / 配置

![storeConf](https://github.com/alist-org/alist/assets/22924386/1274a2bb-66c4-495c-9e71-2a831eee2c5b)
[alistconf.json](https://github.com/user-attachments/files/15869291/alistconf.json)

### Logs / 日志

_No response_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。