Paso a modo Produccion
This commit is contained in:
@@ -25,11 +25,11 @@ const procesarPath = (path) => {
|
||||
const fs = require('fs');
|
||||
function leer_dir(dir){
|
||||
var json = [];
|
||||
var files = fs.readdirSync(dirPath);
|
||||
var files = fs.readdirSync(dirPath,{ withFileTypes: true });
|
||||
files.forEach(function(arch,idx){
|
||||
json.push({"indice": idx, "archivo": arch});
|
||||
json.push({"indice": idx, "archivo": arch.name,"link":"files/"+arch});
|
||||
//console.log(arch.name);
|
||||
});
|
||||
//console.log(json);
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user