TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: Dumas Walker
from: Digital Man
date: 2024-03-22 12:26:00
subject: addfiles error

  Re: addfiles error
  By: Dumas Walker to DIGITAL MAN on Fri Mar 22 2024 09:40 am

 > >  > Synchronet version - 3.20
 > >  > OS - linux
 >
 > >  > I am trying to add files from a CD.  When I run addfiles with the
 > >  > following
 > >  > command line:
 >
 > >  > ./exec/jsexec addfiles area +/path/to/filelist/listname 33 15
 >
 > >  > I get the following error:
 >
 > >  > !/path/where/files/are/listname does not exist
 >
 > >  > So it is looking for the right 'listname' but in the path where the
 > >  > files are instead of the path where the filelists are (which is the one
 > >  > I am giving it).
 >
 > > It looks like you're trying to use the addfiles.exe syntax with
 > > addfiles.js, e.g. there's no '+' in any addfiles.js option syntax. See
 > > https://wiki.synchro
 > > et/module:addfiles for details.
 >
 > I also tried it without the plus and got the exact same error.
 >
 > I tried it again just now, without the plus, and still get the error.
 >
 > ./exec/jsexec addfiles area /path/to/filelist/listname 33 15

That's still the incorrect syntax for addfiles.js.  Though, I don't think it's relevant to your question at this point.

 > Reading script from /home/bbs/exec/addfiles.js
 > /home/bbs/exec/addfiles.js compiled in 0.00 seconds
 > Adding files to Nightowl NOPV-2 ASP Member Submissions
 > !/path/to/filearea/listname does not exist
 > 0 files added
 > /home/bbs/exec/addfiles.js executed in 0.55 seconds
 >
 > JavaScript: Destroying context
 > JavaScript: Destroying runtime
 >
 > It knows enough to pick up the listname but then uses the path where the
 > filearea is (the wrong one) instead of the one I am giving it (the path on
 > the CD where the listname is).

The error message is a bit misleading (not printing the actual list path it was trying to find when a full path to a listfile was specified on the command-line). I'll commit a version with better error reporting here shortly. Please re-test with that.

 > FWIW, yesterday when I first had the error I was taking the commands I was
 > using directly from that wiki page.  As it appeared yesterday, it still had
 > the '+' syntax in the examples as I copied and pasted it from the page.

It sounds like you copied commands from the wrong wiki page:
https://wiki.synchro.net/util:addfiles <- the old/deprecated addfiles.exe
https://wiki.synchro.net/module:addfiles <- the new/supported addfile.js

But at least now, I don't think that's the source of your problem.
-- 
                                            digital man (rob)

This Is Spinal Tap quote #24:
David St. Hubbins: You're a haughty one, saucy Jack.
Norco, CA WX: 67.1øF, 63.0% humidity, 3 mph WSW wind, 0.00 inches rain/24hrs
--- SBBSecho 3.20-Linux
                                             
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.