From b1f05cbacbeed12809525f2697f13961de356cc6 Mon Sep 17 00:00:00 2001 From: rameel Date: Wed, 9 Jul 2025 16:44:51 +0500 Subject: [PATCH 1/3] Update Ramstack.Globbing to version 2.3.1 --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 2cad035..2fada46 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -14,7 +14,7 @@ - + \ No newline at end of file From e9c610eed84cf94762b2a413f34381965e6cb94c Mon Sep 17 00:00:00 2001 From: rameel Date: Wed, 9 Jul 2025 16:44:59 +0500 Subject: [PATCH 2/3] Update README --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index af1848b..85bf649 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # Ramstack.FileSystem +[![NuGet](https://img.shields.io/nuget/v/Ramstack.FileSystem.Abstractions.svg)](https://nuget.org/packages/Ramstack.FileSystem.Abstractions) +[![MIT](https://img.shields.io/github/license/rameel/ramstack.filesystem)](https://github.com/rameel/ramstack.filesystem/blob/main/LICENSE) A .NET library providing a virtual file system abstraction. @@ -12,7 +14,7 @@ The primary interface is `IVirtualFileSystem`, which exposes methods to: ### VirtualFile -The `VirtualFile` class provides properties and methods for creating, deleting, copying and opening files within the virtual file system. +The `VirtualFile` class provides properties and methods for creating, deleting, copying, and opening files within the virtual file system. ```csharp using Ramstack.FileSystem; @@ -160,5 +162,5 @@ Bug reports and contributions are welcome. ## License This package is released as open source under the **MIT License**. -See the [LICENSE](https://github.com/rameel/ramstack.virtualfiles/blob/main/LICENSE) file for more details. +See the [LICENSE](https://github.com/rameel/ramstack.filesystem/blob/main/LICENSE) file for more details. From 45ea5b840a36d1b632bb25d72527f99b955459d5 Mon Sep 17 00:00:00 2001 From: rameel Date: Wed, 9 Jul 2025 16:49:54 +0500 Subject: [PATCH 3/3] Nit: Use AsSpan instead of Substring --- src/Ramstack.FileSystem.Prefixed/PrefixedFileSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ramstack.FileSystem.Prefixed/PrefixedFileSystem.cs b/src/Ramstack.FileSystem.Prefixed/PrefixedFileSystem.cs index b5fcaf4..83bb653 100644 --- a/src/Ramstack.FileSystem.Prefixed/PrefixedFileSystem.cs +++ b/src/Ramstack.FileSystem.Prefixed/PrefixedFileSystem.cs @@ -102,7 +102,7 @@ public void Dispose() => // FileSystemCasing? FilePathCasing? if (path.StartsWith(prefix, StringComparison.Ordinal) && path[prefix.Length] == '/') - return path[prefix.Length..]; + return new string(path.AsSpan(prefix.Length)); return null; }