mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
system/helpers: remove mkdirhier(); gui/themes: use createDir()
This is a partial revert of picked commit67ea8dd650
. There were two methods, createDir() and mkdirhier() for the same purpose. We don't need it twice. btw: existing function createDir() fixed Origin commit data ------------------ Commit:1dcfc52a33
Author: Thilo Graf <dbt@novatux.de> Date: 2014-11-28 (Fri, 28 Nov 2014)
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