5 lines
189 B
TypeScript
5 lines
189 B
TypeScript
export const getParentPathFromServerPath = (serverPath: string): string | null => {
|
|
const parentPath = serverPath.substring(0, serverPath.lastIndexOf('/'));
|
|
return parentPath || null;
|
|
};
|