{"size": 782, "ext": "js", "max_stars_repo_path": "Directory.js", "max_stars_repo_name": "RazzSunuwar/Node.js", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Directory.js", "max_issues_repo_name": "RazzSunuwar/Node.js", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Directory.js", "max_forks_repo_name": "RazzSunuwar/Node.js", "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": 24.4375, "max_line_length": 74, "alphanum_fraction": 0.5639386189}
const fs = require("fs");

// Create dir sync
// fs.mkdirSync("FileSystem");

// Remove dir sync
// fs.rmdirSync("FileSystem");



// Async
// fs.mkdir("Folder", function(){
//     fs.readFile("README.md", "utf8", function(err, data){
//         fs.writeFile("./Folder/writeMe.txt", data, function(err, done){
//             if(err){
//                 console.log("Error in creating new file", err)
//             } return console.log('Success in creating new file');
//         });
//     });
// });


// Remove file and directory
fs.unlink('./Folder/writeMe.txt', function(err, data){
    fs.rmdir("Folder", data, function(err, done){
        if(err){
            console.log("Error in remove folder", done)
        } return console.log('Success in delete folder');
    });
});

