2024-04-18 01:44:37 +02:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
2025-02-16 11:43:30 +01:00
|
|
|
|
namespace Wino.Core.Domain.Interfaces
|
2024-04-18 01:44:37 +02:00
|
|
|
|
{
|
2025-02-16 11:43:30 +01:00
|
|
|
|
public interface IFileService
|
|
|
|
|
|
{
|
|
|
|
|
|
Task<string> CopyFileAsync(string sourceFilePath, string destinationFolderPath);
|
|
|
|
|
|
Task<Stream> GetFileStreamAsync(string folderPath, string fileName);
|
|
|
|
|
|
Task<string> GetFileContentByApplicationUriAsync(string resourcePath);
|
2024-08-21 13:54:24 +02:00
|
|
|
|
|
2025-02-16 11:43:30 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Zips all existing logs and saves to picked destination folder.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="logsFolder">Folder path where logs are stored.</param>
|
|
|
|
|
|
/// <param name="destinationFolder">Target path to save the archive file.</param>
|
|
|
|
|
|
/// <returns>True if zip is created with at least one item, false if logs are not found.</returns>
|
|
|
|
|
|
Task<bool> SaveLogsToFolderAsync(string logsFolder, string destinationFolder);
|
|
|
|
|
|
}
|
2024-04-18 01:44:37 +02:00
|
|
|
|
}
|