MCPcopy
hub / github.com/marktext/marktext / basename

Method basename

packages/desktop/src/types/global.d.ts:122–122  ·  view source on GitHub ↗
(path: string, ext?: string)

Source from the content-addressed store, hash-verified

120
121 interface PathAPI {
122 basename(path: string, ext?: string): string
123 dirname(path: string): string
124 extname(path: string): string
125 join(...paths: string[]): string

Callers 15

RENAME_IF_NEEDEDFunction · 0.80
createProjectRootFunction · 0.80
moveImageToFolderFunction · 0.80
index.tsFile · 0.80
edit.tsFile · 0.80
handleResponseForExportFunction · 0.80
handleResponseForSaveFunction · 0.80
file.tsFile · 0.80
doRenameFunction · 0.80
writeBufferStoreFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected