an useful collection of utils for files and folders operations.
npm install @samwen/fs-utils --save
const { deleteFolderRecursive, listFolderRecursive, writeToGzipFile } = require('@samwen/fs-utils');
deleteFolderRecursive('/tmp/test/test_folder');
const list = listFolderRecursive('/tmp/test/test_folder');
const str = 'test writeToGzipFile. verifies it should unzip back to the same text';
writeToGzipFile('/tmp/filesys_test/test.txt.gz', str);