function createFolderRecursively (folder) {

    const parts = folder.split (path.sep)

    for (let i = 1; i <= parts.length; i++) {
        createFolder (path.join.apply (null, parts.slice (0, i)))
    }
}
function createFolderRecursively (folder) {

    const parts = folder.split (path.sep)

    for (let i = 1; i <= parts.length; i++) {
        createFolder (path.join.apply (null, parts.slice (0, i)))
    }
}
function createFolderRecursively ( folder ) { const parts = folder . split ( path . sep ) for ( let i = 1 ; i <= parts . length ; i ++ ) { createFolder ( path . join . apply ( null , parts . slice ( 0 , i ) ) ) } }
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Create a folder recursively