You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
[Unix / DirAccess] Fix removing directory symlinks with remove, ensure erase_contents_recursive is not following directory symlinks.
This commit is contained in:
@@ -84,7 +84,7 @@ static Error _erase_recursive(DirAccess *da) {
|
||||
String n = da->get_next();
|
||||
while (!n.is_empty()) {
|
||||
if (n != "." && n != "..") {
|
||||
if (da->current_is_dir()) {
|
||||
if (da->current_is_dir() && !da->is_link(n)) {
|
||||
dirs.push_back(n);
|
||||
} else {
|
||||
files.push_back(n);
|
||||
|
||||
Reference in New Issue
Block a user