lib/pathutils.js
function touch( path ) {
    if ( FS.existsSync( path ) ) {
        const content = FS.readFileSync( path );
        FS.writeFileSync( path, content );
        console.log( `File has been touched: ${path.yellow} (${(size(path) * BYTES_TO_KB).toFixed(1)} kb)` );
        return true;
    }
    return false;
}
function touch( path ) {
    if ( FS.existsSync( path ) ) {
        const content = FS.readFileSync( path );
        FS.writeFileSync( path, content );
        console.log( `File has been touched: ${path.yellow} (${(size(path) * BYTES_TO_KB).toFixed(1)} kb)` );
        return true;
    }
    return false;
}
function touch ( path ) { if ( FS . existsSync ( path ) ) { const content = FS . readFileSync ( path ) ; FS . writeFileSync ( path , content ) ; console . log ( ` ${ path . yellow } ${ ( size ( path ) * BYTES_TO_KB ) . toFixed ( 1 ) } ` ) ; return true ; } return false ; }
Set current date as modification time to a file.

@param   {string} path - Path of the file to touch.
@returns {boolean} `true` is the file exists.
Set current date as modification time to a file .