This function is unused.
Chris Pressey
6 years ago
19 | 19 |
Config();
|
20 | 20 |
~Config() {};
|
21 | 21 |
|
22 | |
void ChangeToHomeDirectory();
|
23 | 22 |
void ChangeToUserDirectory();
|
24 | 23 |
bool ValidateUserDirectory();
|
25 | 24 |
bool CopyFile(std::string source, std::string dest);
|
22 | 22 |
{
|
23 | 23 |
m_optsFilePath = GetHomePath() + USER_DIRECTORY_NAME;
|
24 | 24 |
return m_optsFilePath.c_str();
|
25 | |
}
|
26 | |
|
27 | |
void Config::ChangeToHomeDirectory()
|
28 | |
{
|
29 | |
if(chdir(GetHomePath().c_str()))
|
30 | |
{
|
31 | |
// TODO: LOG ERROR
|
32 | |
cout << "Cannot switch to home directory ('" << GetHomePath().c_str() << "')" << std::endl;
|
33 | |
}
|
34 | 25 |
}
|
35 | 26 |
|
36 | 27 |
void Config::ChangeToUserDirectory()
|