code: function pathStrToPathArr(path) {
  	path = path.substr(1).split('/').map(part => {
  		// De-tokenize '/' characters in path name
  		return part.replace(/~1/g, '/');
  	});
  
  	// For some reason, path arrays whose only item is an empty string cause errors.
  	// In this case, we replace the path with an empty array, which seems to be fine.
  	if (path.length === 1 && path[0] === '') {
  		path = [];
  	}
  
  	return path;
  }
docs: Converts a string path (/a/b/c) to an array path ['a', 'b', 'c']
  @param path {String} - The path to convert.
  @returns {Array} - The converted path.