MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / Ftp

Interface Ftp

src/plugins/ftp/index.d.ts:10–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8type ErrorCallback = (err: any) => void;
9
10interface Ftp{
11 connect(
12 host: string,
13 port: number,
14 username: string,
15 password: string,
16 options: FtpOptions,
17 onSuccess: SuccessCallback,
18 onError: ErrorCallback
19 ): void;
20 listDirectory(
21 id: string, // connection id
22 path: string,
23 onSuccess: SuccessCallback,
24 onError: ErrorCallback
25 ): void;
26 execCommand(
27 id: string, // connection id
28 command: string,
29 onSuccess: SuccessCallback,
30 onError: ErrorCallback,
31 ...args: string,
32 ): void;
33 isConnected(
34 id: string, // connection id
35 onSuccess: SuccessCallback,
36 onError: ErrorCallback,
37 ): void;
38 disconnect(
39 id: string, // connection id
40 onSuccess: SuccessCallback,
41 onError: ErrorCallback,
42 ): void;
43 downloadFile(
44 id: string, // connection id
45 remotePath: string,
46 localPath: string,
47 onSuccess: SuccessCallback,
48 onError: ErrorCallback,
49 ): void;
50 uploadFile(
51 id: string, // connection id
52 localPath: string,
53 remotePath: string,
54 onSuccess: SuccessCallback,
55 onError: ErrorCallback,
56 ): void;
57 deleteFile(
58 id: string, // connection id
59 remotePath: string,
60 onSuccess: SuccessCallback,
61 onError: ErrorCallback,
62 ): void;
63 deleteDirectory(
64 id: string, // connection id
65 remotePath: string,
66 onSuccess: SuccessCallback,
67 onError: ErrorCallback,

Callers 68

connectClientFunction · 0.65
connectMethod · 0.65
runMethod · 0.65
listDirMethod · 0.65
execFunction · 0.65
copyFunction · 0.65
cutFunction · 0.65
pasteFunction · 0.65
lsDirMethod · 0.65
createFileMethod · 0.65
createDirMethod · 0.65
writeFileMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected