You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Fix Directory.dir_exist/get_current_dir for 'res://' on Android
Fix #7014
This commit is contained in:
@@ -288,6 +288,11 @@ public class GodotIO {
|
||||
|
||||
try {
|
||||
ad.files = am.list(path);
|
||||
// no way to find path is directory or file exactly.
|
||||
// but if ad.files.length==0, then it's an empty directory or file.
|
||||
if (ad.files.length==0) {
|
||||
return -1;
|
||||
}
|
||||
} catch (IOException e) {
|
||||
|
||||
System.out.printf("Exception on dir_open: %s\n",e);
|
||||
|
||||
Reference in New Issue
Block a user