improved error message in webui: show full path of file if read failed

This commit is contained in:
electron128 2015-07-30 14:00:48 +02:00 committed by cave beat
parent 9897def2cc
commit ff9bf71aa8
4 changed files with 42 additions and 7 deletions

View file

@ -74,7 +74,12 @@ class RsAccountsDetail
bool checkAccountDirectory();
// Paths.
static std::string PathDataDirectory();
/**
* @brief PathDataDirectory
* @param check if set to true and directory does not exist, return empty string
* @return path where global platform independent files are stored, like bdboot.txt or webinterface files
*/
static std::string PathDataDirectory(bool check = true);
std::string PathBaseDirectory();
// PGP Path is only dependent on BaseDirectory.