| 176 | } |
| 177 | |
| 178 | FILE* CreateAndOpenTemporaryFile(FilePath* path) { |
| 179 | FilePath directory; |
| 180 | if (!GetTempDir(&directory)) |
| 181 | return NULL; |
| 182 | |
| 183 | return CreateAndOpenTemporaryFileInDir(directory, path); |
| 184 | } |
| 185 | |
| 186 | bool CreateDirectory(const FilePath& full_path) { |
| 187 | return CreateDirectoryAndGetError(full_path, NULL); |