MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / DirectoryIsWritable

Method DirectoryIsWritable

src/Setup/UpdateRunner.cpp:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139bool CUpdateRunner::DirectoryIsWritable(wchar_t * szPath)
140{
141 wchar_t szTempFileName[MAX_PATH];
142 UINT uRetVal = GetTempFileNameW(szPath, L"Squirrel", 0, szTempFileName);
143 if (uRetVal == 0) {
144 return false;
145 }
146 DeleteFile(szTempFileName);
147 return true;
148}
149
150int CUpdateRunner::ExtractUpdaterAndRun(wchar_t* lpCommandLine, bool useFallbackDir)
151{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected