From 334879399ebb9aacf6750097ffc19c7a25a91308 Mon Sep 17 00:00:00 2001 From: Shalitha Suranga Date: Tue, 10 Sep 2024 14:24:28 +0530 Subject: [PATCH] Export the resources.extractFile function --- src/api/resources.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/api/resources.ts b/src/api/resources.ts index bcc717f..0f5ae79 100644 --- a/src/api/resources.ts +++ b/src/api/resources.ts @@ -1,5 +1,9 @@ import { sendMessage } from '../ws/websocket'; -export function getFiles(): Promise { +export function getFiles(): Promise { return sendMessage('resources.getFiles'); }; + +export function extractFile(path: string, destination: string): Promise { + return sendMessage('resources.extractFile', { path, destination }); +};