Question
Using File.list()
Hi,
Im using FMS 3 on the server side when onConnect occures i need an array of all file that is the directory root/streams/myApp
how do use the File.list() ? do i need to create a new file just for getting the list of files of the directory? and how do i get to do that on the directory i want ? is it like this:
File.list(function(name){ return name.indexOf("streams/myApp/")!=-1);
i so the example in the doc files :
var a = x.currentDir.list(function(name){return name.length==3;});
does x is a File object? and where the currentDir came from its not a File property?
Please help ...
Im using FMS 3 on the server side when onConnect occures i need an array of all file that is the directory root/streams/myApp
how do use the File.list() ? do i need to create a new file just for getting the list of files of the directory? and how do i get to do that on the directory i want ? is it like this:
File.list(function(name){ return name.indexOf("streams/myApp/")!=-1);
i so the example in the doc files :
var a = x.currentDir.list(function(name){return name.length==3;});
does x is a File object? and where the currentDir came from its not a File property?
Please help ...