Fixed decompress issue (hopefully)
This commit is contained in:
@@ -212,13 +212,27 @@ public class WingsFileAccess : FileAccess
|
|||||||
|
|
||||||
public override async Task Decompress(FileData fileData)
|
public override async Task Decompress(FileData fileData)
|
||||||
{
|
{
|
||||||
var req = new DecompressFile()
|
try
|
||||||
{
|
{
|
||||||
Root = CurrentPath,
|
var req = new DecompressFile()
|
||||||
File = fileData.Name
|
{
|
||||||
};
|
Root = CurrentPath,
|
||||||
|
File = fileData.Name
|
||||||
|
};
|
||||||
|
|
||||||
await WingsApiHelper.Post(Server.Node, $"api/servers/{Server.Uuid}/files/decompress", req);
|
await WingsApiHelper.Post(Server.Node, $"api/servers/{Server.Uuid}/files/decompress", req);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
if (e.Message.ToLower().Contains("canceled"))
|
||||||
|
{
|
||||||
|
// ignore, maybe do smth better here, like showing a waiting thing or so
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Task<string> GetLaunchUrl()
|
public override Task<string> GetLaunchUrl()
|
||||||
|
|||||||
Reference in New Issue
Block a user