static cp(from, to) {
        return new Promise((resolve, reject) => {
            const output = fs.createWriteStream(to);
            output.on('close', function() {
                resolve(true);
            });
            output.on('error', function(err) {
                reject(err);
            });
            fs.createReadStream(from).pipe(output);
        });
    }
/**
     * Copy one file content to another file, target and source file names must be specify.
     * The destination folder must exists
     * @param from {string} source file name
     * @param to {string} target file name. File name must be specified, destination folder is not enough
     * @return {Promise<any>}
     */
Copy one file content to another file, target and source file names must be specify.
The destination folder must exists
@param from {string} source file name
@param to {string} target file name. File name must be specified, destination folder is not enough
@return {Promise}
Copy one file content to another file target and source file names must be specify . The destination folder must exists @param from { string } source file name @param to { string } target file name . File name must be specified destination folder is not enough @return { Promise }
static cp(from, to) {
        return new Promise((resolve, reject) => {
            const output = fs.createWriteStream(to);
            output.on('close', function() {
                resolve(true);
            });
            output.on('error', function(err) {
                reject(err);
            });
            fs.createReadStream(from).pipe(output);
        });
    }
static cp ( from , to ) { return new Promise ( ( resolve , reject ) => { const output = fs . createWriteStream ( to ) ; output . on ( 'close' , function ( ) { resolve ( true ) ; } ) ; output . on ( 'error' , function ( err ) { reject ( err ) ; } ) ; fs . createReadStream ( from ) . pipe ( output ) ; } ) ; }
Copy one file content to another file, target and source file names must be specify.
Copy one file content to another file target and source file names must be specify .