Repository navigation
v2.2.0
🎯 What's New
Folder Rename Detection
ResilientFileSystemMonitor now automatically detects folder renames containing matching files. No configuration needed—works out of the box.
var monitor = ResilientFileSystemMonitor
.Watch(@"C:\certs")
.WithFilter("*.pfx")
.IncludeSubdirectories()
.OnRenamed((sender, e) =>
{
// Fires for BOTH file AND folder renames!
Console.WriteLine($"Renamed: {e.OldFullPath} -> {e.FullPath}");
})
.Build();Perfect for certificate rotation: Atomic folder swaps (kid2-staging → kid2) are now properly detected.
FileSearcher API Harmonization
Search with multiple patterns and depth control, matching the ResilientFileSystemMonitor API.
var files = FileSearcher
.InDirectory(@"C:\repos\myapp")
.WithFilter("*.cs", "*.csproj", "*.json")
.IncludeSubdirectories(2) // Search 2 levels deep
.ToList();🔄 Backward Compatibility
✅ Fully backward compatible—all existing code continues to work without changes.
📦 Upgrade
<PackageReference Include="Cocoar.FileSystem" Version="2.2.0" />📊 Testing
139 tests passing across Windows, Linux, and macOS.