src/cordova/util.js
function fixRelativePath (value, /* optional */ cwd) {
    // Don't touch absolute paths.
    if (value[1] === ':' || value[0] === path.sep) {
        return value;
    }
    var newDir = cwd || process.env.PWD || process.cwd();
    var origDir = getOrigWorkingDirectory();
    var pathDiff = path.relative(newDir, origDir);
    var ret = path.normalize(path.join(pathDiff, value));
    return ret;
}
function fixRelativePath (value, /* optional */ cwd) {
    // Don't touch absolute paths.
    if (value[1] === ':' || value[0] === path.sep) {
        return value;
    }
    var newDir = cwd || process.env.PWD || process.cwd();
    var origDir = getOrigWorkingDirectory();
    var pathDiff = path.relative(newDir, origDir);
    var ret = path.normalize(path.join(pathDiff, value));
    return ret;
}
function fixRelativePath ( value , /* optional */ cwd ) { // Don't touch absolute paths. if ( value [ 1 ] === ':' || value [ 0 ] === path . sep ) { return value ; } var newDir = cwd || process . env . PWD || process . cwd ( ) ; var origDir = getOrigWorkingDirectory ( ) ; var pathDiff = path . relative ( newDir , origDir ) ; var ret = path . normalize ( path . join ( pathDiff , value ) ) ; return ret ; }
Fixes up relative paths that are no longer valid due to chdir() within cdProjectRoot().
Fixes up relative paths that are no longer valid due to chdir () within cdProjectRoot () .