MCPcopy Create free account
hub / github.com/VemtoOrg/vemto2 / getFileNameFromPath

Method getFileNameFromPath

src/main/base/FileSystem.ts:38–41  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

36 }
37
38 getFileNameFromPath(path: string): string {
39 let namePosition = path.search(/[ \w-.]+\.\w+$/)
40 return path.substr(namePosition)
41 }
42
43 getFileUpdatedDate(filePath): Date {
44 if(this.fileExists(filePath)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected