From 89cf310fc6c802973408576343ae155cea3bda14 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Wed, 12 Oct 2005 08:49:13 +0000 Subject: [PATCH] Better example of directory() and bbs.sys_status usage. --- exec/examples/dir.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exec/examples/dir.js b/exec/examples/dir.js index 080b6311d6..69c1ab9303 100644 --- a/exec/examples/dir.js +++ b/exec/examples/dir.js @@ -17,9 +17,9 @@ if (path==undefined) if (path.indexOf('*')<0 && path.indexOf('?')<0) path += "*"; // No pattern specified print(path); -dir = directory(path); +dir = directory(path,GLOB_PERIOD); for (i in dir) { - if(bbs.sys_status&SS_ABORT) + if(this.bbs && bbs.sys_status&SS_ABORT) break; print(dir[i]); -} \ No newline at end of file +} -- GitLab