Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 



Constructs a list of the file names found in a folder.



NAME (required)
List of files found.

PATH (required)
Folder to scan.

FILTER (optional)
File filter to use. Possible filters are *.* or *.

RECURSIVE (optional)
Whether to list subfolders. Possible values are true or false.

LIMIT (optional)
The maximum number of file names to return in the list.


The FILELIST tag constructs a list of the file names found in a folder. The created list contains the following columns:

Full path name of the file.
Name of the file.
Size of the file.
Set to true if the row is a folder, or false if the row is a file.

The column values of the current row can be obtained using the syntax, List.colname where List is the name of the list and colname is the name of the column in the list.


In the case of StringLists, the values can be obtained by using List.Item.

You can use the following attributes to return information about the list using the syntax, List.attname, where attname can be one of the following attributes:

Number of rows in this list
Current row in this list.
Boolean (true/false) to indicate whether there are more rows following the current row.
Number of columns in this list.
Only used on lists that contain resultsets. Contents of the file in the specified column if the colname begins with "url".

For example, MyList.#numRows returns the number of rows in the list MyList. MyList.@urlheader retrieves the contents of the file specified by the column urlheader.

The value of a list is maintained during the processing of a page request. If the list contains a resultset, the resultset is maintained independently of a list that uses it.

Error Numbers

The possible values of errno include:

Empty list.


This example gets a list of all *.html files found in the folder mydir and stores the results in myfiles.

See Also


  Home > Contents > Index >

Oracle XML Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.