开发者

How can I get all the filename of a directory in flex?

开发者 https://www.devze.com 2022-12-14 08:11 出处:网络
In Flex How can i get all the filename which contains in a directo开发者_C百科ry in flex AIR.use File() function

In Flex How can i get all the filename which contains in a directo开发者_C百科ry in flex AIR.


use File() function

Please Refer to this Site for More Info


if dirPath:String is your directory path, then

var f:File = new File(dirPath);
var arr:Array = f.getDirectoryListing();

This gives you list of all files in the given directory. The elements of the array are File objects, each representing a file / dirctory in the given directory.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号