| 14 | #endif |
| 15 | |
| 16 | MATERIALX_NAMESPACE_BEGIN |
| 17 | |
| 18 | string readFile(const FilePath& filePath) |
| 19 | { |
| 20 | std::ifstream file(filePath.asString(), std::ios::in); |
| 21 | if (file) |
| 22 | { |
| 23 | std::stringstream stream; |
| 24 | stream << file.rdbuf(); |
| 25 | file.close(); |
| 26 | if (stream) |
| 27 | { |
| 28 | return stream.str(); |
| 29 | } |
| 30 | } |
| 31 | return EMPTY_STRING; |
| 32 | } |
| 33 | |
| 34 | void getSubdirectories(const FilePathVec& rootDirectories, const FileSearchPath& searchPath, FilePathVec& subDirectories) |
| 35 | { |
no test coverage detected