74
Server-Side ActionScript Language Reference
Description
Property (read-only); a Date object containing the time the file was last modified.
File.length
Availability
Flash Media Server 2.
Usage
fileObject
.length
Description
Property (read-only). For a directory, the number of files in the directory, not counting the
current directory and parent directory entries; for a file, the number of bytes in the file.
File.list()
Availability
Flash Media Server 2.
Usage
fileObject
.list(
filter
)
Parameters
filter
A Function object that determines the files in the returned array.
If the function returns
true
when a file’s name is passed to it as a parameter, the file is added
to the array returned by
File.list()
. This parameter is optional and allows you to filter the
results of the call.
Returns
An Array object containing all the file objects in the directory.
Description
Method; if the file is a directory, returns an array with an element for each file in the directory.
Example
The following example returns files in the current directory that have three-character names:
var a = x.currentDir.list(function(name){return name.length==3;});