Renaming a directory using the kernel API /api/file/renameFile
indicates that the file is in use
#8635
Closed
3 tasks done
Uh oh!
There was an error while loading. Please reload this page.
使用 API
/api/file/renameFile
重命名目录时提示文件被占用Is there an existing issue for this?
Can the issue be reproduced with the default theme (daylight/midnight)?
Could the issue be due to extensions?
Describe the problem
使用 API
/api/file/renameFile
重命名目录, 若newPath
指定的目录为已经存在的目录, 则提示🚒 已成功避免潜在的数据损坏
Rename the directory using API
/api/file/renameFile
, if the directory specified bynewPath
is an existing directory, it will indicateSuccessfully avoid potential data corruption
下面是复现步骤
Here are the steps to reproduce
temp/convert/pandoc/test/rename-dir/
与temp/convert/pandoc/test/rename-dir-new/
/api/file/renameFile
, 请求体如下所示Expected result
若
newPath
指定了一个已存在的目录, 应返回错误信息作为响应体而不是直接退出内核If 'newPath' specifies a directory that already exists, it should return an error message as response body instead of exiting the kernel directly
Screenshot or screen recording presentation
No response
Version environment
Log file
More information
No response
The text was updated successfully, but these errors were encountered: