function separatePath(path) {
    const tmp = path.split("/");
    return {
        file: tmp.pop(),
        dir: tmp.join("/"),
    };
}
/**
 * Separates filename and directory from a path string. Returns an object containing both.
 *
 * @param path {String} - a string representing the path to a file
 * @returns {Object} - an object with separated `file` (the filename) and `dir` (path minus filename) properties
 * @private
 */
Separates filename and directory from a path string. Returns an object containing both.
@param path {String} - a string representing the path to a file
@returns {Object} - an object with separated `file` (the filename) and `dir` (path minus filename) properties
@private
Separates filename and directory from a path string . Returns an object containing both . @param path { String } - a string representing the path to a file @returns { Object } - an object with separated ` file ` ( the filename ) and ` dir ` ( path minus filename ) properties @private
function separatePath(path) {
    const tmp = path.split("/");
    return {
        file: tmp.pop(),
        dir: tmp.join("/"),
    };
}
function separatePath ( path ) { const tmp = path . split ( "/" ) ; return { file : tmp . pop ( ) , dir : tmp . join ( "/" ) , } ; }
Separates filename and directory from a path string.
Separates filename and directory from a path string .