1export const getParentDir = (filePath: string): string => {2 const splitA = filePath.split('/')3 return splitA.slice(0, -1).join('/')4}