Implemented zip and tar compressing and decompressing. Implemented chunked file uploading
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using MoonlightServers.DaemonShared.Enums;
|
||||
|
||||
namespace MoonlightServers.DaemonShared.DaemonSide.Http.Requests;
|
||||
|
||||
public class ServerFilesCompressRequest
|
||||
{
|
||||
public string Destination { get; set; }
|
||||
public string[] Items { get; set; }
|
||||
public CompressType Type { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using MoonlightServers.DaemonShared.Enums;
|
||||
|
||||
namespace MoonlightServers.DaemonShared.DaemonSide.Http.Requests;
|
||||
|
||||
public class ServerFilesDecompressRequest
|
||||
{
|
||||
public string Destination { get; set; }
|
||||
public string Path { get; set; }
|
||||
public CompressType Type { get; set; }
|
||||
}
|
||||
7
MoonlightServers.DaemonShared/Enums/CompressType.cs
Normal file
7
MoonlightServers.DaemonShared/Enums/CompressType.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace MoonlightServers.DaemonShared.Enums;
|
||||
|
||||
public enum CompressType
|
||||
{
|
||||
Zip = 0,
|
||||
TarGz = 1
|
||||
}
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="DaemonSide\" />
|
||||
<Folder Include="DaemonSide\Http\Responses\Servers\Files\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user