mirror of
https://github.com/izzy2lost/WeeU.git
synced 2026-07-06 00:19:59 -07:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user