mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 16:56:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			460 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			460 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import http from '@/api/http';
 | |
| 
 | |
| export default async (uuid: string, directory: string, file: string): Promise<void> => {
 | |
|     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.',
 | |
|         }
 | |
|     );
 | |
| };
 | 
