mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user