This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let fileSystem = require('fs') | |
let path = require('path') | |
/* Returns true if folder is empty, false if not */ | |
folder_empty = (path) => { | |
return fileSystem.readdirSync(path).length === 0; | |
} | |
/* Recursively Deletes a folder and it's contents */ | |
// targetPath = absolute path of folder to be deleted |