Skip to content

Commit

Permalink
Fix typos in fs wrappers
Browse files Browse the repository at this point in the history
* Fix typos in fs wrappers

---------

Co-authored-by: SSimco <[email protected]>
  • Loading branch information
Weab-chan and SSimco authored Jul 13, 2024
1 parent 987cb77 commit 9dbc01d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Common/precompiled.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,31 +111,31 @@ 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);
}
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);
}
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);
}
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);
}
Expand Down

0 comments on commit 9dbc01d

Please sign in to comment.