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

Function formatPathRclone

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

Source from the content-addressed store, hash-verified

263}
264
265function formatPathRclone(path: string): string {
266 path = formatPath(path)
267 if (path.startsWith('/')) {
268 path = path.substring(1)
269 }
270 // 始终移除末尾斜杠
271 if (path.endsWith('/')) {
272 path = path.substring(0, path.length - 1)
273 }
274 return path
275}
276
277//获取文件列表
278async function getFileList(storageName: string, path: string): Promise<FileInfo[] | undefined> {

Callers 4

StorageAndPathInputerFunction · 0.90
convertStoragePathFunction · 0.85
getFileListFunction · 0.85
moveFileFunction · 0.85

Calls 1

formatPathFunction · 0.90

Tested by

no test coverage detected