Files
Umbraco-CMS/src/Umbraco.Web.UI.Client/src/mocks/data/file-system/util/parent-path-from-server-path.function.ts
Mads Rasmussen fb31168feb add update method
2023-12-17 20:01:51 +01:00

5 lines
189 B
TypeScript

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