mirror of
https://github.com/libAthena/athena.git
synced 2025-06-05 06:03:43 +00:00
Merge branch 'file-dir-api' of https://github.com/Antidote/Athena into file-dir-api
This commit is contained in:
commit
3223d3faa6
@ -80,13 +80,8 @@ atUint64 FileInfo::size() const
|
|||||||
|
|
||||||
bool FileInfo::exists() const
|
bool FileInfo::exists() const
|
||||||
{
|
{
|
||||||
#ifdef GEKKO
|
struct stat64_t st;
|
||||||
struct stat st;
|
|
||||||
int e = stat(m_path.c_str(), &st);
|
|
||||||
#else
|
|
||||||
struct stat64 st;
|
|
||||||
int e = stat64(m_path.c_str(), &st);
|
int e = stat64(m_path.c_str(), &st);
|
||||||
#endif
|
|
||||||
|
|
||||||
if (e < 0)
|
if (e < 0)
|
||||||
return false;
|
return false;
|
||||||
@ -96,13 +91,8 @@ bool FileInfo::exists() const
|
|||||||
|
|
||||||
bool FileInfo::isLink() const
|
bool FileInfo::isLink() const
|
||||||
{
|
{
|
||||||
#ifdef GEKKO
|
struct stat64_t st;
|
||||||
struct stat st;
|
|
||||||
int e = stat(m_path.c_str(), &st);
|
|
||||||
#else
|
|
||||||
struct stat64 st;
|
|
||||||
int e = stat64(m_path.c_str(), &st);
|
int e = stat64(m_path.c_str(), &st);
|
||||||
#endif
|
|
||||||
if (e < 0)
|
if (e < 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user