| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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.
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();✅ Fully backward compatible—all existing code continues to work without changes.
<PackageReference Include="Cocoar.FileSystem" Version="2.2.0" />139 tests passing across Windows, Linux, and macOS.
| Back | FazBrowse Home | New Git URL |