This content has been marked as final. Show 4 replies
Array.push(ItemToPush) will get the file names into the array. Do you also need a mechanisim for getting the file names or do you have that already?
if i put in the file name, will it push in all the files within it?
sorry, make that : if i put in the folder name, will it push in all the files within it?
Array.push(value) sticks "value" - whatever it may be - to the end of the array. And no, push() won't know anything about file names in a folder. You need to write the code that looks in the folder, finds all the files, and pushes each file name into the array.
How are you accessing the folder?