forked from markus/S_New4
fix helpmenue: missing subfunction --remove && wrong path symbol in windows && wromng path symbol in some functions
This commit is contained in:
parent
2b6af638c0
commit
66260307f6
@ -344,6 +344,8 @@ int unterOption_help(Settings &settings)
|
||||
<< "\t\"--help\"\tGibt dieses Helpmenue aus." << std::endl
|
||||
<< "\t\"--version\"\tGibt die Version des Programmes aus." << std::endl
|
||||
<< "\t\"--update\"\tModus um das Programm zu aktualisieren." << std::endl
|
||||
<< "\t\"--remove\"\tModus um Ordner mit Einstellungen/" << std::endl
|
||||
<< "\t \tZwischengespeicherte-Dateien zu löschen." << std::endl
|
||||
<< "\t\"url\"\t\tModus um eigene Redirect-Links umzuwandeln." << std::endl
|
||||
<< "\t\"default\"\tModus um Links von Serien zu bekommen." << std::endl
|
||||
<< "\t\"search\"\tModus um Serien zu suchen." << std::endl
|
||||
@ -355,10 +357,10 @@ int unterOption_help(Settings &settings)
|
||||
std::cout << "Verzeichnisse:" << std::endl
|
||||
<< "\tOrdner zum zwischenspeichern der Cookies, AccountNummer" << std::endl
|
||||
<< "\tund des letzten Update Datums:" << std::endl
|
||||
<< " => > '" << std::string(settings.cookieFilePath).erase(settings.cookieFilePath.find_last_of(settings.pathSymbol)) << "/'" << std::endl
|
||||
<< " => > '" << std::string(settings.cookieFilePath).erase(settings.cookieFilePath.find_last_of(settings.pathSymbol)) << settings.pathSymbol << "'" << std::endl
|
||||
<< "\tOrdner zum speichern der Accounts, Default-Einstellungen" << std::endl
|
||||
<< "\tund der Serienliste:" << std::endl
|
||||
<< " => > '" << std::string(settings.defaultsFilePath).erase(settings.defaultsFilePath.find_last_of(settings.pathSymbol)) << "/'" << std::endl;
|
||||
<< " => > '" << std::string(settings.defaultsFilePath).erase(settings.defaultsFilePath.find_last_of(settings.pathSymbol)) << settings.pathSymbol << "'" << std::endl;
|
||||
|
||||
return -1;
|
||||
}
|
||||
@ -1288,8 +1290,8 @@ bool removeDirIsOk(std::string path, Settings *settings)
|
||||
while ((dp = readdir(dirp)) != nullptr) {
|
||||
if(strcmp( dp->d_name, "." ) == 0 || strcmp ( dp->d_name, ".." ) == 0)
|
||||
continue;
|
||||
else if(dirExists((path + dp->d_name + "/"))) { //if(dp->d_type == DT_DIR) {
|
||||
if( ! removeDirIsOk(path + dp->d_name + "/" , settings)) {
|
||||
else if(dirExists((path + dp->d_name + settings->pathSymbol ))) { //if(dp->d_type == DT_DIR) {
|
||||
if( ! removeDirIsOk(path + dp->d_name + settings->pathSymbol , settings)) {
|
||||
if(settings->debugMode)
|
||||
std::cout << " => Error im Unterordner: '" << path + dp->d_name << "'" << std::endl;
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user