tasks/lib/utils.js
function(file, options) {
		file = this.absPath(file);
		var cwd = (options && options.cwd) || '';
		if (file.substring(0, cwd.length) == cwd) {
			file = file.substring(cwd.length);
			if (file.charAt(0) != '/') {
				file = '/' + file;
			}
		}

		return file;
	}
function(file, options) {
		file = this.absPath(file);
		var cwd = (options && options.cwd) || '';
		if (file.substring(0, cwd.length) == cwd) {
			file = file.substring(cwd.length);
			if (file.charAt(0) != '/') {
				file = '/' + file;
			}
		}

		return file;
	}
function ( file , options ) { file = this . absPath ( file ) ; var cwd = ( options && options . cwd ) || '' ; if ( file . substring ( 0 , cwd . length ) == cwd ) { file = file . substring ( cwd . length ) ; if ( file . charAt ( 0 ) != '/' ) { file = '/' + file ; } } return file ; }
Returns file path suitable for storing in catalog
@param  {String} file   File path
@param  {Object} options Options for transforming path
@return {String}
Returns file path suitable for storing in catalog