Merge pull request #44610 from m4gr3d/fix_top_level_android_export_3_2

[3.2] Fix the `String::get_base_dir()` logic to properly check for top level directories on Windows
This commit is contained in:
Rémi Verschelde 2020-12-23 23:57:44 +01:00 committed by GitHub
commit cddff0404d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3970,7 +3970,10 @@ bool String::is_rel_path() const {
String String::get_base_dir() const {
int basepos = find("://");
int basepos = find(":/");
if (basepos == -1) {
basepos = find(":\\");
}
String rs;
String base;
if (basepos != -1) {