MCPcopy Create free account
hub / github.com/VirtualHotBar/NetMount / getFileName

Function getFileName

src/controller/storage/storage.ts:260–263  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

258}
259
260function getFileName(path: string): string {
261 const pathArr = path.split('/')
262 return pathArr[pathArr.length - 1] ?? ''
263}
264
265function formatPathRclone(path: string): string {
266 path = formatPath(path)

Callers 4

copyFileFunction · 0.85
moveFileFunction · 0.85
copyDirFunction · 0.85
moveDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected