Skip to content
Snippets Groups Projects
Commit a4e38543 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Skip files listed in imported DIRS.TXT/DIRS.WIN/00_INDEX.TXT files

I'm not clear why Walnut Creek would list files (e.g. readme.txt) in these
lists of "directories", but don't create file areas for them. Less clean-up
required after import.
parent 6e516aed
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6409 passed
...@@ -696,15 +696,15 @@ void xfer_cfg() ...@@ -696,15 +696,15 @@ void xfer_cfg()
uifc.changes = TRUE; uifc.changes = TRUE;
} }
break; break;
case __COUNTER__:
#define DIRS_TXT_HELP_TEXT "`DIRS.TXT` is a plain text file that includes all of the Synchronet\n" \ #define DIRS_TXT_HELP_TEXT "`DIRS.TXT` is a plain text file that includes all of the Synchronet\n" \
"configuration field values for each directory in the library.\n" "configuration field values for each directory in the library.\n"
#define DIRS_CDR_HELP_TEXT "`DIRS.TXT` is also a text file containing a list of directory names and\n" \ #define DIRS_CDR_HELP_TEXT "`DIRS.TXT` is also a text file containing a list of directory names and\n" \
"descriptions (one per line) included on CD-ROMs.\n" \ "descriptions (one per line) included on CD-ROMs.\n" \
"Sometimes this file is named `DIRS.WIN`.\n" "A file of this format is sometimes named `DIRS.WIN` or `00_INDEX.TXT`.\n"
#define FILEGATE_ZXX_HELP_TEXT "`FILEGATE.ZXX` is a plain text file in the old RAID/FILEBONE.NA format\n" \ #define FILEGATE_ZXX_HELP_TEXT "`FILEGATE.ZXX` is a plain text file in the old RAID/FILEBONE.NA format\n" \
"which describes a list of file areas connected across a File\n" \ "which describes a list of file areas connected across a File\n" \
"Distribution Network (e.g. Fidonet).\n" "Distribution Network (e.g. Fidonet).\n"
case __COUNTER__:
k=0; k=0;
ported=0; ported=0;
q=uifc.changes; q=uifc.changes;
...@@ -1030,6 +1030,11 @@ void xfer_cfg() ...@@ -1030,6 +1030,11 @@ void xfer_cfg()
SAFECOPY(tmpdir.code_suffix, prep_code(tmp_code,cfg.lib[libnum]->code_prefix)); SAFECOPY(tmpdir.code_suffix, prep_code(tmp_code,cfg.lib[libnum]->code_prefix));
snprintf(path, sizeof path, "%s/%s", cfg.lib[libnum]->parent_path, tmpdir.path); snprintf(path, sizeof path, "%s/%s", cfg.lib[libnum]->parent_path, tmpdir.path);
if(fexistcase(path)) {
SAFEPRINTF(str, "Not a dir: %s", path);
uifc.msg(str);
continue;
}
if(getdircase(path)) if(getdircase(path))
SAFECOPY(tmpdir.path, path + strlen(cfg.lib[libnum]->parent_path) + 1); SAFECOPY(tmpdir.path, path + strlen(cfg.lib[libnum]->parent_path) + 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment