MCPcopy Create free account
hub / github.com/Make-md/makemd / folderPathToString

Function folderPathToString

src/utils/path.ts:41–41  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

39
40
41export const folderPathToString = (path: string) => removeLeadingSlash(path.substring(path.lastIndexOf("/"))) || path;
42export const getParentFolderPaths = (path: string): string[] => {
43 const folderPaths: string[] = [];
44 const parts: string[] = path.split("/");

Callers 5

NewPropertyMenuComponentFunction · 0.90
setStateMethod · 0.90
folderRenamedFunction · 0.90

Calls 1

removeLeadingSlashFunction · 0.90

Tested by

no test coverage detected