19 lines
367 B
C#
19 lines
367 B
C#
namespace LightlessSync.FileCache;
|
|
|
|
public interface ICompactorContext
|
|
{
|
|
bool UseCompactor { get; }
|
|
string CacheFolder { get; }
|
|
bool IsWine { get; }
|
|
}
|
|
|
|
public interface ICompactionExecutor
|
|
{
|
|
bool TryCompact(string filePath);
|
|
}
|
|
|
|
public sealed class NoopCompactionExecutor : ICompactionExecutor
|
|
{
|
|
public bool TryCompact(string filePath) => false;
|
|
}
|