LassoScript Utility
Basics Browse Detail

[File_ListDirectory]

Tag Link [File_ListDirectory] Category File
Type Substitution Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type Array Security Tag
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0
Lasso 3 Equivalent [Directory_Lister] ...

Description

[File_ListDirectory] returns an array of strings. Each item in the array is the name of one file in the directory. Accepts one parameter, the name of the directory to be listed.

Syntax

[File_ListDirectoryFile Name]

Parameters

Required Parameters
File Name The name of the directory to be listed. This parameter must not be empty.

Examples

To list the contents of a directory:

Use the [File_ListDirectory] tag. The following example lists the contents of the root of the Web serving folder.

[File_ListDirectory: '/']

(Array: (default.lasso), (myfile.txt))