get list of file in a directory with api js code example
Example: javascript get list of files in directory
var fs = require('fs');
var files = fs.readdirSync('/downloads');
var fs = require('fs');
var files = fs.readdirSync('/downloads');