tasks/lib/filestoreutil.js
function splitIntoPathAndObject(sValue) {
    var aValues = sValue.split('/');
    var sObject = aValues.pop();
    var sPath = aValues.join('/');
    if (sPath.length > 0 && sPath.charAt(0) !== '/') {
        sPath = '/' + sPath;
    }
    return {
        path: sPath,
        obj: sObject
    };
}
function splitIntoPathAndObject(sValue) {
    var aValues = sValue.split('/');
    var sObject = aValues.pop();
    var sPath = aValues.join('/');
    if (sPath.length > 0 && sPath.charAt(0) !== '/') {
        sPath = '/' + sPath;
    }
    return {
        path: sPath,
        obj: sObject
    };
}
function splitIntoPathAndObject ( sValue ) { var aValues = sValue . split ( '/' ) ; var sObject = aValues . pop ( ) ; var sPath = aValues . join ( '/' ) ; if ( sPath . length > 0 && sPath . charAt ( 0 ) !== '/' ) { sPath = '/' + sPath ; } return { path : sPath , obj : sObject } ; }
Split a value into the path and object information
@param {string} sValue values like /test/test1.txt
@return {{path: string, obj: string}} Path object
Split a value into the path and object information