Closed vansAir closed 3 weeks ago
It seems that you are using extra backslashes. The path would be interpreted as D:\\SPACE\mes\\mes-mcdc\mcdc\1.txt
and it tends to be invalid.
To deal with forbidden path
error:
{
"identifier": "fs:allow-rename",
"allow": ["D:\\**"]
}
It seems that you are using extra backslashes. The path would be interpreted as
D:\\SPACE\mes\\mes-mcdc\mcdc\1.txt
and it tends to be invalid.您似乎使用了额外的反斜杠。该路径将被解释为D:\\SPACE\mes\\mes-mcdc\mcdc\1.txt
而且它往往是无效的。 To deal withforbidden path
error:处理forbidden path
错误:{ "identifier": "fs:allow-rename", "allow": ["D:\\**"] }
Please take a look at this error. Thank you very much.
- Disable your antivirus software.禁用您的防病毒软件。
- Run IDE as Administrator.以管理员身份运行 IDE。
This is my configuration itself, but it still doesn't work. :=(
D:\SPACE\mes\mes-main\dist\child
seems like a directory that already exists? If that's the case, you can't replace a directory with a file using rename, if you want to move the file under this directory, you need to write the whole path like D:\SPACE\mes\mes-main\dist\child\1.txt
Anyways, this is not related tauri's fs plugin, check https://doc.rust-lang.org/std/fs/fn.rename.html for how rename
works
Describe the bug
When I use tokio::fs::rename, I am prompted with "Access denied.os error (5)". How can I give it administrator permissions? I am using the Windows 11 operating system. I tried to execute it using cmd and printed the execution statement. In Rust, it shows exit code 1, but it can be executed directly in cmd.Later, I used tauri_plugin_fs. Still, there is a permission error.
default.json
Reproduction
No response
Expected behavior
The folder can be moved normally
Full
tauri info
outputStack trace
No response
Additional context
No response