system/helpers: remove mkdirhier(); gui/themes: use createDir()

This is a partial revert of
picked commit 431657e35d.
There were two methods, createDir() and mkdirhier() for the same purpose.
We don't need it twice.
btw: existing function createDir() fixed
This commit is contained in:
2014-11-28 10:24:00 +01:00
parent 9280566377
commit 1dcfc52a33
3 changed files with 28 additions and 31 deletions

View File

@@ -163,8 +163,9 @@ int CThemes::Show()
CKeyboardInput nameInput(LOCALE_COLORTHEMEMENU_NAME, &file_name);
CMenuForwarder *m1 = new CMenuForwarder(LOCALE_COLORTHEMEMENU_SAVE, true , NULL, &nameInput, NULL, CRCInput::RC_green);
if (mkdirhier(THEMEDIR_VAR) && errno != EEXIST) {
if (CFileHelpers::createDir(THEMEDIR_VAR) && errno != EEXIST) {
printf("[neutrino theme] error creating %s\n", THEMEDIR_VAR);
}
if (access(THEMEDIR_VAR, F_OK) == 0 ) {
themes.addItem(GenericMenuSeparatorLine);
@@ -343,7 +344,7 @@ void CThemes::move_userDir()
{
if (access(USERDIR, F_OK) == 0)
{
if (mkdirhier(THEMEDIR_VAR) && errno != EEXIST)
if (CFileHelpers::createDir(THEMEDIR_VAR) && errno != EEXIST)
{
printf("[neutrino theme] error creating %s\n", THEMEDIR_VAR);
return;