Skip to content
Snippets Groups Projects
Commit 672a0e38 authored by rswindell's avatar rswindell
Browse files

Tests new global directory() function.

parent 902f7bb3
No related branches found
No related tags found
No related merge requests found
// dir.js
// Example use of global directory() method.
// $Id$
// @format.tab-size 8, @format.use-tabs true
load("sbbsdefs.js");
if (argc==0)
path = prompt("Path");
else
path = argv[0];
if (path==undefined)
exit();
if (path.indexOf('*')<0 && path.indexOf('?')<0)
path += "*"; // No pattern specified
print(path);
dir = directory(path);
for (i in dir) {
if(bbs.sys_status&SS_ABORT)
break;
print(dir[i]);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment