src/core/base/wnComponent.js
function (filePath,cb)
		{
			var realPath = this.instanceOf('wnModule')?this.modulePath+filePath:filePath,
				cmd = !cb ? 'statSync' : 'stat';
			if (!fs.existsSync(realPath))
				return (cb&&cb(false) == true);
			var _cb = cb ? function (err,stat) {
					cb&&cb(!err ? stat : false);
				} : null,
				stat = fs[cmd](realPath,_cb);
			return stat;
		}
function (filePath,cb)
		{
			var realPath = this.instanceOf('wnModule')?this.modulePath+filePath:filePath,
				cmd = !cb ? 'statSync' : 'stat';
			if (!fs.existsSync(realPath))
				return (cb&&cb(false) == true);
			var _cb = cb ? function (err,stat) {
					cb&&cb(!err ? stat : false);
				} : null,
				stat = fs[cmd](realPath,_cb);
			return stat;
		}
function ( filePath , cb ) { var realPath = this . instanceOf ( 'wnModule' ) ? this . modulePath + filePath : filePath , cmd = ! cb ? 'statSync' : 'stat' ; if ( ! fs . existsSync ( realPath ) ) return ( cb && cb ( false ) == true ) ; var _cb = cb ? function ( err , stat ) { cb && cb ( ! err ? stat : false ) ; } : null , stat = fs [ cmd ] ( realPath , _cb ) ; return stat ; }
Get a file statistic.
The file's path is relative to the module's path.
@param string $filePath file's path
@param function $cb callback
Get a file statistic . The file s path is relative to the module s path .