Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
260
function
getFileName(path: string): string {
261
const
pathArr = path.split(
'/'
)
262
return
pathArr[pathArr.length - 1] ??
''
263
}
264
265
function
formatPathRclone(path: string): string {
266
path = formatPath(path)
Callers
4
copyFile
Function · 0.85
moveFile
Function · 0.85
copyDir
Function · 0.85
moveDir
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected