diff --git a/src/Common/precompiled.h b/src/Common/precompiled.h index c621164b..db202def 100644 --- a/src/Common/precompiled.h +++ b/src/Common/precompiled.h @@ -111,7 +111,7 @@ inline bool is_file(const std::filesystem::path& p) { #if __ANDROID__ if (FilesystemAndroid::isContentUri(p)) - return FilesystemAndroid::isDirectory(p); + return FilesystemAndroid::isFile(p); #endif // __ANDROID__ return std::filesystem::is_regular_file(p); } @@ -119,7 +119,7 @@ inline bool is_file(const std::filesystem::path& p, std::error_code& ec) { #if __ANDROID__ if (FilesystemAndroid::isContentUri(p)) - return FilesystemAndroid::isDirectory(p); + return FilesystemAndroid::isFile(p); #endif // __ANDROID__ return std::filesystem::is_regular_file(p, ec); } @@ -127,7 +127,7 @@ inline bool exists(const std::filesystem::path& p) { #if __ANDROID__ if (FilesystemAndroid::isContentUri(p)) - return FilesystemAndroid::isDirectory(p); + return FilesystemAndroid::exists(p); #endif // __ANDROID__ return std::filesystem::exists(p); } @@ -135,7 +135,7 @@ inline bool exists(const std::filesystem::path& p, std::error_code& ec) { #if __ANDROID__ if (FilesystemAndroid::isContentUri(p)) - return FilesystemAndroid::isDirectory(p); + return FilesystemAndroid::exists(p); #endif // __ANDROID__ return std::filesystem::exists(p, ec); }