src/utils/directory.js
function remove(repoState, dirName) {
    // List entries to move
    const filesToRemove = readFilenamesRecursive(repoState, dirName);

    // Push change to remove all entries
    return filesToRemove.reduce((repoState, path) => {
        return FileUtils.remove(repoState, path);
    }, repoState);
}
function remove(repoState, dirName) {
    // List entries to move
    const filesToRemove = readFilenamesRecursive(repoState, dirName);

    // Push change to remove all entries
    return filesToRemove.reduce((repoState, path) => {
        return FileUtils.remove(repoState, path);
    }, repoState);
}
Remove a directory: push REMOVE changes for all entries in the directory