lib/mini-mock-api.js
function(filePath){
  var parts = filePath.split('/');
  if(parts.length > 0){
    var id = parts.pop();
    return {
      id: id,
      path: parts.join('/')
    }
  } else {
    return false;
  }
}
function(filePath){
  var parts = filePath.split('/');
  if(parts.length > 0){
    var id = parts.pop();
    return {
      id: id,
      path: parts.join('/')
    }
  } else {
    return false;
  }
}
function ( filePath ) { var parts = filePath . split ( '/' ) ; if ( parts . length > 0 ) { var id = parts . pop ( ) ; return { id : id , path : parts . join ( '/' ) } } else { return false ; } }
split path in subpath and uuid
split path in subpath and uuid