MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / DirectoryExists

Method DirectoryExists

cpp/iedriver/BrowserFactory.cpp:344–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344bool 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
352bool BrowserFactory::CreateUniqueTempDir(std::wstring &temp_dir) {
353 // get temporary folder for the current user

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected