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

Function rclone_api_noop

src/utils/rclone/request.ts:131–143  ·  view source on GitHub ↗

* Rclone API Ping 检查

()

Source from the content-addressed store, hash-verified

129 * Rclone API Ping 检查
130 */
131async function rclone_api_noop(): Promise<boolean> {
132 try {
133 const url = buildApiUrl('/rc/noop')
134 const res = await fetch(url, {
135 method: 'POST',
136 headers: { Authorization: getRcloneApiHeaders().Authorization },
137 })
138 return res.ok
139 } catch (e) {
140 console.log('Rclone ping failed:', e)
141 return false
142 }
143}
144
145/**
146 * Rclone API POST 请求

Callers 2

getSidecarDiagnosticsFunction · 0.90
startComponentWatchdogFunction · 0.90

Calls 2

buildApiUrlFunction · 0.85
getRcloneApiHeadersFunction · 0.85

Tested by

no test coverage detected