Browse Source

android: Fix size check for content uris

Fix for checking file size for android content uris
nce_cpp
Charles Lombardo 3 years ago
parent
commit
2810786adc
  1. 6
      src/common/fs/fs.cpp

6
src/common/fs/fs.cpp

@ -605,6 +605,12 @@ fs::file_type GetEntryType(const fs::path& path) {
} }
u64 GetSize(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; std::error_code ec;
const auto file_size = fs::file_size(path, ec); const auto file_size = fs::file_size(path, ec);

Loading…
Cancel
Save