| 140 | } |
| 141 | |
| 142 | bool UnixFileSystem::DirectoryExists(const StringView& path) |
| 143 | { |
| 144 | struct stat fileInfo; |
| 145 | const UnixString pathANSI(*path, path.Length()); |
| 146 | if (stat(pathANSI.Get(), &fileInfo) != -1) |
| 147 | { |
| 148 | return S_ISDIR(fileInfo.st_mode); |
| 149 | } |
| 150 | return false; |
| 151 | } |
| 152 | |
| 153 | bool UnixFileSystem::DirectoryGetFiles(Array<String>& results, const String& path, const Char* searchPattern, DirectorySearchOption option) |
| 154 | { |