You've already forked godot
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:
@@ -434,7 +434,7 @@ Error DirAccessUnix::remove(String p_path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct stat flags = {};
|
struct stat flags = {};
|
||||||
if ((stat(p_path.utf8().get_data(), &flags) != 0)) {
|
if ((lstat(p_path.utf8().get_data(), &flags) != 0)) {
|
||||||
return FAILED;
|
return FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user