Mozilla XUL Element and Script Reference

Contents  Quick Reference


The files datasource holds a tree of the user's filesystem. Use NC:FilesRoot in a ref attribute to grab the file list from the root. Alternatively, you can use a file URL to specify a particular directory.

Available Resource Properties:

Content-Length (

The length of the file.

LastModifiedDate (

The date that URL was last modified.

Name (

The name of the resource. This will be the title of the page.


The URL for the resource. This will be the URL that is opened when a user double-clicks on the entry in a tree.

extension (

The extension of the file, including the period. This property is only available on platforms that use file extensions.