Subj : bbs.menu vs bbs.menu_exists
To   : nolageek
From : Digital Man
Date : Mon Jan 13 2020 02:26 pm

 Re: bbs.menu vs bbs.menu_exists
 By: nolageek to Digital Man on Mon Jan 13 2020 02:50 pm

> Is there a reason why bbs.menu_exist() does not allow using a directory
> before the file name like bbs.menu()?
>
> bbs.menu("dir\file_base") works for when I want to specify an ansi outside
> of the menu directory (I use it with user.command_shell a lot) but
> bbs.menu_exists("dir\file_base") always comes back negative.

bbs.menu_exists() with a sub-directory specified should work fine. See xtrn_sec.js as an example which check for the existence (and displays) text/menu/xtrn/*.*.

The correct path-separator to use in JS strings is a forward slash (/) not a backslash (\), so perhaps that's the issue?

                                           digital man

Synchronet/BBS Terminology Definition #60:
SCFG = Synchronet Configuration Utility
Norco, CA WX: 60.7�F, 57.0% humidity, 2 mph NNW wind, 0.00 inches rain/24hrs

---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net