lib/upyun.js
function(callback) {
            fs.exists(file, function(exists) {
                if(!exists) {
                    rawData = file;
                    if(typeof rawData === "string") rawData = new Buffer(file);
                    return callback();
                }

                fs.readFile(file, function(err, data) {
                    if(err) return callback(err);
                    rawData = data;
                    return callback();
                });
            });
        }
function(callback) {
            fs.exists(file, function(exists) {
                if(!exists) {
                    rawData = file;
                    if(typeof rawData === "string") rawData = new Buffer(file);
                    return callback();
                }

                fs.readFile(file, function(err, data) {
                    if(err) return callback(err);
                    rawData = data;
                    return callback();
                });
            });
        }
function ( callback ) { fs . exists ( file , function ( exists ) { if ( ! exists ) { rawData = file ; if ( typeof rawData === "string" ) rawData = new Buffer ( file ) ; return callback ( ) ; } fs . readFile ( file , function ( err , data ) { if ( err ) return callback ( err ) ; rawData = data ; return callback ( ) ; } ) ; } ) ; }
get the raw data
@param callback
get the raw data