mirror of https://github.com/godotengine/godot
[Unix] Fix deleting symlinks.
This commit is contained in:
parent
3f56b3b239
commit
d5865cb962
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue