| 342 | } |
| 343 | |
| 344 | bool BrowserFactory::DirectoryExists(std::wstring& dir_name) { |
| 345 | DWORD attribs = ::GetFileAttributes(dir_name.c_str()); |
| 346 | if (attribs == INVALID_FILE_ATTRIBUTES) { |
| 347 | return false; |
| 348 | } |
| 349 | return (attribs & FILE_ATTRIBUTE_DIRECTORY); |
| 350 | } |
| 351 | |
| 352 | bool BrowserFactory::CreateUniqueTempDir(std::wstring &temp_dir) { |
| 353 | // get temporary folder for the current user |
nothing calls this directly
no outgoing calls
no test coverage detected