Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Acode-Foundation/Acode
/ #connectIfNotConnected
Method
#connectIfNotConnected
src/fileSystem/ftp.js:338–343 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
336
}
337
338
async
#connectIfNotConnected() {
339
const
isConnected =
await
this.#isConnected();
340
if
(!isConnected) {
341
await
this.connect();
342
}
343
}
344
}
345
346
export
default
function
Ftp(
Callers
11
listDir
Method · 0.95
readFile
Method · 0.95
writeFile
Method · 0.95
createFile
Method · 0.95
createDir
Method · 0.95
delete
Method · 0.95
rename
Method · 0.95
moveTo
Method · 0.95
exists
Method · 0.95
stat
Method · 0.95
getWorkingDirectory
Method · 0.95
Calls
2
#isConnected
Method · 0.95
connect
Method · 0.95
Tested by
no test coverage detected