RemoteFileAdapter
Defined in: src/protocols/RemoteFileAdapter.ts:20
Minimal remote-file adapter required by the current alpha facade.
Methods
Section titled “Methods”connect()
Section titled “connect()”connect(profile: ConnectionProfile): Promise<void>;Defined in: src/protocols/RemoteFileAdapter.ts:27
Opens a remote connection.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
profile | ConnectionProfile | Host, authentication, protocol, timeout, signal, and logger settings. |
Returns
Section titled “Returns”Promise<void>
A promise that resolves when the remote session is ready for operations.
disconnect()
Section titled “disconnect()”disconnect(): Promise<void>;Defined in: src/protocols/RemoteFileAdapter.ts:34
Closes the remote connection and releases protocol resources.
Returns
Section titled “Returns”Promise<void>
A promise that resolves when the remote session is fully closed.
list()
Section titled “list()”list(path: string, options?: ListOptions): Promise<RemoteEntry[]>;Defined in: src/protocols/RemoteFileAdapter.ts:43
Lists entries for a remote directory.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
path | string | Remote directory path to list. |
options? | ListOptions | Optional listing controls such as recursion and abort signal. |
Returns
Section titled “Returns”Promise<RemoteEntry[]>
Normalized remote entries contained by the requested path.
stat()
Section titled “stat()”stat(path: string, options?: StatOptions): Promise<RemoteStat>;Defined in: src/protocols/RemoteFileAdapter.ts:52
Reads metadata for a remote entry.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
path | string | Remote path to inspect. |
options? | StatOptions | Optional stat controls such as abort signal. |
Returns
Section titled “Returns”Promise<RemoteStat>
Normalized metadata for an existing remote entry.