git-svn-id: svn://db.shs.com.ru/pip@727 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2019-02-08 12:19:59 +00:00
parent 01c2e143e4
commit 841f985005

View File

@@ -19,11 +19,6 @@
#include "piincludes_p.h"
#include "pidir.h"
//#ifdef ESP_PLATFORM
//extern "C" {
//# include "esp_spiffs.h"
//}
//#endif
const PIChar PIDir::separator = '/';
#ifdef QNX
@@ -360,11 +355,9 @@ bool PIDir::isExists(const PIString & path) {
DWORD ret = GetFileAttributes((LPCTSTR)(path.data()));
return (ret != 0xFFFFFFFF) && (ret & FILE_ATTRIBUTE_DIRECTORY);
#else
#ifndef ESP_PLATFORM
DIR * dir_ = opendir(path.data());
if (dir_ == 0) return false;
closedir(dir_);
#endif
#endif
return true;
}
@@ -380,9 +373,9 @@ PIDir PIDir::current() {
ret.prepend(separator);
return PIDir(ret);
#else
#ifndef ESP_PLATFORM
//#ifndef ESP_PLATFORM
if (getcwd(rc, 1024) == 0) return PIString();
#endif
//#endif
#endif
return PIDir(rc);
}