JS est le répertoire
const fs=require("fs");
fs.lstatSync(path_string).isDirectory();
dan1st
const fs=require("fs");
fs.lstatSync(path_string).isDirectory();