๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
JavaScript/Node.js

[Node.js-์ƒํ™œ์ฝ”๋”ฉ] Node.js์—์„œ ํŒŒ์ผ๋ชฉ๋ก ์•Œ์•„๋‚ด๊ธฐ

by ์ฝ”๋”ฉํ•˜๋Š” ๋ถ•์–ด 2021. 1. 27.
๋ฐ˜์‘ํ˜•

[์ถœ์ฒ˜-Youtube ์ƒํ™œ์ฝ”๋”ฉ]

https://www.youtube.com/watch?v=tzJ2K3Yp89I&list=PLuHgQVnccGMA9QQX5wqj6ThK7t2tsGxjm&index=29

 

nodejs/readdir.js

 

var testFolder = './data';
var fs = require('fs');
 
fs.readdir(testFolder, function(error, filelist){
  console.log(filelist);
})

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€