FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Release v2.2.0 · cocoar-dev/Cocoar.FileSystem · GitHub

v2.2.0

Choose a tag to compare

Filter
windischb released this 15 Nov 23:15
· 5 commits to develop since this release
ff6a409

🎯 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.


Back | FazBrowse Home | New Git URL