Skip to content

RemoteFileAdapter

Defined in: src/protocols/RemoteFileAdapter.ts:20

Minimal remote-file adapter required by the current alpha facade.

connect(profile: ConnectionProfile): Promise<void>;

Defined in: src/protocols/RemoteFileAdapter.ts:27

Opens a remote connection.

ParameterTypeDescription
profileConnectionProfileHost, authentication, protocol, timeout, signal, and logger settings.

Promise<void>

A promise that resolves when the remote session is ready for operations.


disconnect(): Promise<void>;

Defined in: src/protocols/RemoteFileAdapter.ts:34

Closes the remote connection and releases protocol resources.

Promise<void>

A promise that resolves when the remote session is fully closed.


list(path: string, options?: ListOptions): Promise<RemoteEntry[]>;

Defined in: src/protocols/RemoteFileAdapter.ts:43

Lists entries for a remote directory.

ParameterTypeDescription
pathstringRemote directory path to list.
options?ListOptionsOptional listing controls such as recursion and abort signal.

Promise<RemoteEntry[]>

Normalized remote entries contained by the requested path.


stat(path: string, options?: StatOptions): Promise<RemoteStat>;

Defined in: src/protocols/RemoteFileAdapter.ts:52

Reads metadata for a remote entry.

ParameterTypeDescription
pathstringRemote path to inspect.
options?StatOptionsOptional stat controls such as abort signal.

Promise<RemoteStat>

Normalized metadata for an existing remote entry.