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 }); +};