Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 673bf7df authored by Rob Swindell's avatar Rob Swindell 💬

File list creation scan progress meter display.

parent df49b436
Pipeline #2329 passed with stage
in 8 minutes and 50 seconds
......@@ -56,11 +56,12 @@ ulong sbbs_t::create_filelist(const char *name, long mode)
if(mode&FL_ULTIME) {
fprintf(fp, "New files since: %s\r\n", timestr(ns_time));
}
unsigned total_dirs = 0;
for(i=0; i < usrlibs ;i++)
total_dirs += usrdirs[i];
for(i=j=d=0;i<usrlibs;i++) {
for(j=0;j<usrdirs[i];j++,d++) {
outchar('.');
if(d && !(d%5))
bputs("\b\b\b\b\b \b\b\b\b\b");
progress(text[Scanning], d, total_dirs, 10);
if(mode&FL_ULTIME /* New-scan */
&& (cfg.lib[usrlib[i]]->offline_dir==usrdir[i][j]
|| cfg.dir[usrdir[i][j]]->misc&DIR_NOSCAN))
......@@ -73,6 +74,7 @@ ulong sbbs_t::create_filelist(const char *name, long mode)
if(j<usrdirs[i])
break;
}
progress(text[Done], d, total_dirs);
if(k>1) {
fprintf(fp,"\r\n%ld Files Listed.\r\n",k);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment