1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-04 17:04:49 +00:00

Merge pull request #102545 from bruvzg/fix_link_remove

[Unix] Fix deleting symlinks.
This commit is contained in:
Thaddeus Crews
2025-02-07 14:50:32 -06:00

View File

@@ -434,7 +434,7 @@ Error DirAccessUnix::remove(String p_path) {
}
struct stat flags = {};
if ((stat(p_path.utf8().get_data(), &flags) != 0)) {
if ((lstat(p_path.utf8().get_data(), &flags) != 0)) {
return FAILED;
}