function getParentPath(path) {
	const pathPieces = path.split('/');
	if (pathPieces.length > 1) {
		return pathPieces.slice(0, -1).join('/');
	}
	return '';
}
Returns parent path of passed path
@param {string} path Path of file to find parent of