summaryrefslogtreecommitdiffstats
path: root/platform/android/file_access_filesystem_jandroid.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace File/Directory with FileAccess/DirAccesskobewi2022-09-191-1/+1
|
* Fix issue preventing the Android Editor from displaying the project contentFredia Huya-Kouadio2022-08-151-0/+13
| | | | | The issue was causing by a bug within the logic for `FileAccessFilesystemJAndroid#eof_reached()` causing that value to remain false after the eof was reached. This in turn caused an infinite loop in the file scanner preventing the project's content from showing up.
* File: Re-add support to skip CR (`\r`) in `File::get_as_text`Rémi Verschelde2022-08-011-2/+4
| | | | | | | | | | | | This was removed in #63481, and we confirmed that it's better like this, but we add back the possibility to strip CR as an option, to optionally restore the previous behavior. For performance this is done directly in `String::parse_utf8`. Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR. Supersedes #63717.
* Address remaining scoped storage regressionsFredia Huya-Kouadio2022-07-261-0/+46
| | | | | - Accelerate common path used to check the storage scope for a given path - Update the logic for the `get_as_text()` method - previous logic loads the content of a text file one byte at a time
* Add full support for Android scoped storage.Fredia Huya-Kouadio2022-07-051-0/+283
This was done by refactoring directory and file access handling for the Android platform so that any general filesystem access type go through the Android layer. This allows us to validate whether the access is unrestricted, or whether it falls under scoped storage and thus act appropriately.