133 #ifndef OPENTXS_CORE_OTPATHS_HPP
134 #define OPENTXS_CORE_OTPATHS_HPP
151 static OTString s_strAppBinaryFolder;
154 static OTString s_strGlobalConfigFile;
198 const OTString& strPrefixFolder =
""
205 const OTString& strScriptsFolder =
"",
206 const bool& bIsRelative =
true
211 bool& out_bIsRelative,
bool& out_bKeyExist);
215 const bool& bIsRelative,
bool& out_bIsNewOrUpdated,
220 const bool& bIsFolder);
225 int64_t& nFileLength);
234 bool& out_Exists,
bool& out_IsNew);
244 EXPORT
static bool Win_GetInstallFolderFromRegistry(
267 bool& out_bFolderCreated);
276 bool& out_bFolderCreated);
289 #endif // OPENTXS_CORE_OTPATHS_HPP
static EXPORT bool FileExists(const OTString &strFilePath, int64_t &nFileLength)
static EXPORT bool LoadSetPrefixFolder(OTSettings &config=s_settings, const OTString &strPrefixFolder="")
static EXPORT bool GetCurrentWorking(OTString &strCurrentWorkingPath)
static EXPORT bool Set(OTSettings &config, const OTString &strSection, const OTString &strKey, const OTString &strValue, const bool &bIsRelative, bool &out_bIsNewOrUpdated, const OTString &strComment="")
static EXPORT void SetAppBinaryFolder(OTString strLocation)
static EXPORT bool ToReal(const OTString &strExactPath, OTString &out_strCanonicalPath)
static EXPORT bool BuildFolderPath(const OTString &strFolderPath, bool &out_bFolderCreated)
static EXPORT const OTString & PrefixFolder()
static EXPORT bool RelativeToCanonical(OTString &out_strCanonicalPath, const OTString &strBasePath, const OTString &strRelativePath)
static EXPORT const OTString & AppDataFolder()
static EXPORT bool AppendFolder(OTString &out_strPath, const OTString &strBasePath, const OTString &strFolderName)
static EXPORT bool FixPath(const OTString &strPath, OTString &out_strFixedPath, const bool &bIsFolder)
static EXPORT bool Get(OTSettings &config, const OTString &strSection, const OTString &strKey, OTString &out_strVar, bool &out_bIsRelative, bool &out_bKeyExist)
static EXPORT bool GetHomeFromSystem(OTString &out_strHomeFolder)
static EXPORT void SetHomeFolder(OTString strLocation)
static EXPORT bool BuildFilePath(const OTString &strFolderPath, bool &out_bFolderCreated)
static EXPORT bool LoadSetScriptsFolder(OTSettings &config=s_settings, const OTString &strScriptsFolder="", const bool &bIsRelative=true)
static EXPORT bool ConfirmCreateFolder(const OTString &strExactPath, bool &out_Exists, bool &out_IsNew)
static EXPORT const OTString & ScriptsFolder()
static EXPORT const OTString & AppBinaryFolder()
static EXPORT bool AppendFile(OTString &out_strPath, const OTString &strBasePath, const OTString &strFileName)
static EXPORT bool GetExecutable(OTString &strExecutablePath)
static EXPORT bool FolderExists(const OTString &strFolderPath)
static EXPORT const OTString & HomeFolder()
static EXPORT bool PathExists(const OTString &strPath)
static EXPORT const OTString & GlobalConfigFile()