Returns directory listing given a web path, similar to file_listdirectory except you do not need file tag permissions.
Requires [lp_file_trimPath]
Parameters
-directory
string, required
Path to list the directory for.
Sample Usage
lp_file_listdirectory:'/';
Source Code
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[
define_tag:'lp_file_listdirectory',
-description='Returns directory listing given a web path, similar to file_listdirectory except you do not need file tag permissions.',
-priority='replace',
-privileged, // allows file tags to work in most cases
-required='directory';
// will not work with paths from hard disk
return: (file_listdirectory: (lp_file_trimPath: #directory));
/define_tag;
]