| 205 | |
| 206 | |
| 207 | bool directoryExists(const std::string& dirname) |
| 208 | { |
| 209 | VSIStatBufL sStat; |
| 210 | if (VSIStatL(dirname.c_str(), &sStat) == 0) |
| 211 | { |
| 212 | return VSI_ISDIR(sStat.st_mode); |
| 213 | } |
| 214 | else |
| 215 | { |
| 216 | return false; |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | |
| 221 | bool createDirectory(const std::string& dirname) |