{"size": 766, "ext": "js", "max_stars_repo_path": "03-files-in-folder/index.js", "max_stars_repo_name": "SirenitaV/HTML-builder", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "03-files-in-folder/index.js", "max_issues_repo_name": "SirenitaV/HTML-builder", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "03-files-in-folder/index.js", "max_forks_repo_name": "SirenitaV/HTML-builder", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.9166666667, "max_line_length": 111, "alphanum_fraction": 0.5130548303}
const fs = require('fs');
const path = require('path');

fs.readdir(path.join(__dirname, 'secret-folder'), {withFileTypes: true}, (err, files) => {
    console.log('\nCurrent directory files: ');
    if(err) {
      console.log(err);
    }
    else {
      files.forEach(file => {
        const filesPaths = [];
        file.isFile() == true ? filesPaths.push(path.join(__dirname, 'secret-folder', file.name)): '';
        for (let i = 0; i < filesPaths.length; i ++) {
          let size;
          fs.stat(filesPaths[i], (err, stats) => {
            size = stats.size;
            if(!file.isFile()) {
            }
          console.log(path.parse(filesPaths[i]).name, ' - ', path.extname(filesPaths[i]), ' - ', size + 'b');  
        });
      };
    })
  }
});