Skip to content

Commit c9d4326

Browse files
author
Invers3
committed
Update getPost.js
testing
1 parent f0e9b13 commit c9d4326

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

netlify/functions/getPost.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ exports.handler = async function(event){
1515
const recursive = function(datalist){
1616
datalist.forEach(function(file){
1717
html += file + "\n"
18-
if(file != '$RECYCLE.BIN' && file != '.Trash-1000' && file != 'Config.Msi' && file != 'DCIM'){
19-
if(fs.statSync(file).isDirectory()){
20-
recursive(fs.readdirSync(file));
21-
}else{
22-
html += file + "\n"
23-
}
24-
}
2518
})
2619
return html
2720
}

0 commit comments

Comments
 (0)