Fix typos in fs wrappers

* Fix typos in fs wrappers

---------

Co-authored-by: SSimco <37044560+SSimco@users.noreply.github.com>
This commit is contained in:
Weab chan 2024-07-13 04:16:01 -04:00 committed by GitHub
parent 987cb7799b
commit 9dbc01db13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}