These methods usually find parse the filename (full path). But for Android, we can’t do that for all cases, so if the file starts with content://
the Uri is first opened and then queried for filename.
Then that fileName is used for all operations
Once again, we do the same thing with content://
, we call QFileInfo::fileName
Not sure if it a hack or not, if the file is a content Url we return it as such.
If it is a Unix local file Url that is something like: file:/data/data/org.krta/files/
, we use the same logic as for the default QUrl::toLocalFile()
, if not, we return it unmodified.
returns true.
content://
Uris are not treated as relative path.