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?