2020-07-15 04:16:49 +00:00
|
|
|
import http from '@/api/http';
|
|
|
|
|
|
|
|
export default async (uuid: string, directory: string, file: string): Promise<void> => {
|
2022-06-26 19:13:52 +00:00
|
|
|
await http.post(
|
|
|
|
`/api/client/servers/${uuid}/files/decompress`,
|
|
|
|
{ root: directory, file },
|
|
|
|
{
|
|
|
|
timeout: 300000,
|
|
|
|
timeoutErrorMessage:
|
|
|
|
'It looks like this archive is taking a long time to be unarchived. Once completed the unarchived files will appear.',
|
2022-11-25 20:25:03 +00:00
|
|
|
},
|
2022-06-26 19:13:52 +00:00
|
|
|
);
|
2020-07-15 04:16:49 +00:00
|
|
|
};
|