Added make/remove directory functionality.

This commit is contained in:
Branimir Karadžić
2017-11-26 18:17:46 -08:00
parent cf9acbfdb0
commit fbb1e453b6
5 changed files with 179 additions and 7 deletions

View File

@@ -69,8 +69,8 @@ const char* Settings::get(const StringView& _name) const
ini_t* ini = INI_T(m_ini);
FilePath uri(_name);
const StringView path = strTrim(uri.getPath(), "/");
const StringView& fileName = uri.getFileName();
const StringView path(strTrim(uri.getPath(), "/") );
const StringView& fileName(uri.getFileName() );
int32_t section = INI_GLOBAL_SECTION;
if (!path.isEmpty() )
@@ -96,8 +96,8 @@ void Settings::set(const StringView& _name, const StringView& _value)
ini_t* ini = INI_T(m_ini);
FilePath uri(_name);
const StringView path = strTrim(uri.getPath(), "/");
const StringView& fileName = uri.getFileName();
const StringView path(strTrim(uri.getPath(), "/") );
const StringView& fileName(uri.getFileName() );
int32_t section = INI_GLOBAL_SECTION;