Quelle: http://wiki.droidscript.me.uk/doku.php?id=sample_code:list_folders_and_subfolders
function RecursiveFolderList(path,kids){
kids=(typeof kids==='undefined')?[]:kids;
if (app.IsFolder(path))
{
kids.push(path);
app.ListFolder(path).forEach(function(s){
var fil = path + "/" + s;
if (app.IsFolder(fil)) kids = RecursiveFolderList(fil, kids);
});
}
return kids;
};
Keine Kommentare:
Kommentar veröffentlichen