Browse Source
Merge pull request #10925 from t895/fs-agony
android: Fix size check for content uris
pull/15/merge
liamwhite
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
src/common/fs/fs.cpp
|
|
|
@ -605,6 +605,12 @@ fs::file_type GetEntryType(const fs::path& path) { |
|
|
|
} |
|
|
|
|
|
|
|
u64 GetSize(const fs::path& path) { |
|
|
|
#ifdef ANDROID
|
|
|
|
if (Android::IsContentUri(path)) { |
|
|
|
return Android::GetSize(path); |
|
|
|
} |
|
|
|
#endif
|
|
|
|
|
|
|
|
std::error_code ec; |
|
|
|
|
|
|
|
const auto file_size = fs::file_size(path, ec); |
|
|
|
|