✨ feat(file-check): 添加 PLC 应答后命中文件删除
* 新增默认关闭的删除开关,仅在收到 PLC 放行应答后执行 * 本地与 SFTP Provider 校验根目录并支持幂等删除 * 补充工作流、设置页和文件删除相关测试与文档
This commit is contained in:
@@ -25,6 +25,21 @@ public sealed class DesignTimeSftpLookupService : IFileCheckService
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回设计时产品 ID 文件删除结果,不执行实际文件操作。
|
||||
/// </summary>
|
||||
/// <param name="filePath">设计时文件路径。</param>
|
||||
/// <param name="cancellationToken">取消令牌。</param>
|
||||
/// <returns>固定成功结果。</returns>
|
||||
public Task<FileDeleteOutcome> DeleteMatchedFileAsync(string filePath, CancellationToken cancellationToken)
|
||||
{
|
||||
return Task.FromResult(new FileDeleteOutcome
|
||||
{
|
||||
IsSuccess = true,
|
||||
FilePath = filePath
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回设计时文件校验通道测试结果。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user