git-svn-id: svn://db.shs.com.ru/pip@727 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -19,11 +19,6 @@
|
|||||||
#include "piincludes_p.h"
|
#include "piincludes_p.h"
|
||||||
#include "pidir.h"
|
#include "pidir.h"
|
||||||
|
|
||||||
//#ifdef ESP_PLATFORM
|
|
||||||
//extern "C" {
|
|
||||||
//# include "esp_spiffs.h"
|
|
||||||
//}
|
|
||||||
//#endif
|
|
||||||
|
|
||||||
const PIChar PIDir::separator = '/';
|
const PIChar PIDir::separator = '/';
|
||||||
#ifdef QNX
|
#ifdef QNX
|
||||||
@@ -360,11 +355,9 @@ bool PIDir::isExists(const PIString & path) {
|
|||||||
DWORD ret = GetFileAttributes((LPCTSTR)(path.data()));
|
DWORD ret = GetFileAttributes((LPCTSTR)(path.data()));
|
||||||
return (ret != 0xFFFFFFFF) && (ret & FILE_ATTRIBUTE_DIRECTORY);
|
return (ret != 0xFFFFFFFF) && (ret & FILE_ATTRIBUTE_DIRECTORY);
|
||||||
#else
|
#else
|
||||||
#ifndef ESP_PLATFORM
|
|
||||||
DIR * dir_ = opendir(path.data());
|
DIR * dir_ = opendir(path.data());
|
||||||
if (dir_ == 0) return false;
|
if (dir_ == 0) return false;
|
||||||
closedir(dir_);
|
closedir(dir_);
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -380,9 +373,9 @@ PIDir PIDir::current() {
|
|||||||
ret.prepend(separator);
|
ret.prepend(separator);
|
||||||
return PIDir(ret);
|
return PIDir(ret);
|
||||||
#else
|
#else
|
||||||
#ifndef ESP_PLATFORM
|
//#ifndef ESP_PLATFORM
|
||||||
if (getcwd(rc, 1024) == 0) return PIString();
|
if (getcwd(rc, 1024) == 0) return PIString();
|
||||||
#endif
|
//#endif
|
||||||
#endif
|
#endif
|
||||||
return PIDir(rc);
|
return PIDir(rc);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user