27 |
#include <dirent.h> |
#include <dirent.h> |
28 |
|
|
29 |
#include "Exception.h" |
#include "Exception.h" |
30 |
|
#include "Path.h" |
31 |
#include "global_private.h" |
#include "global_private.h" |
32 |
|
|
33 |
#if WIN32 |
#if WIN32 |
48 |
std::vector<File::DirectoryWalker*> File::DirectoryWalkers; |
std::vector<File::DirectoryWalker*> File::DirectoryWalkers; |
49 |
std::string File::DWErrorMsg; |
std::string File::DWErrorMsg; |
50 |
|
|
51 |
|
File::File(const Path& path) { |
52 |
|
bExist = !stat(path.toNativeFSPath().c_str(), &Status); |
53 |
|
if (!bExist) ErrorMsg = strerror(errno); |
54 |
|
} |
55 |
|
|
56 |
File::File(std::string Path) { |
File::File(std::string Path) { |
57 |
bExist = !stat(Path.c_str(), &Status); |
bExist = !stat(Path.c_str(), &Status); |
58 |
if(!bExist) ErrorMsg = strerror(errno); |
if(!bExist) ErrorMsg = strerror(errno); |