mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 08:00:16 -04:00
16 lines
602 B
C#
16 lines
602 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using ModernKeePass.Domain.Dtos;
|
|
|
|
namespace ModernKeePass.Application.Common.Interfaces
|
|
{
|
|
public interface IFileProxy
|
|
{
|
|
Task<FileInfo> OpenFile(string name, string extension, bool addToRecent);
|
|
Task<FileInfo> CreateFile(string name, string extension, string description, bool addToRecent);
|
|
Task<byte[]> ReadBinaryFile(string path);
|
|
Task<IList<string>> ReadTextFile(string path);
|
|
Task WriteBinaryContentsToFile(string path, byte[] contents);
|
|
void ReleaseFile(string path);
|
|
}
|
|
} |