Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageVersion Include="MinVer" Version="6.0.0" />
<PackageVersion Include="NUnit" Version="4.3.2" />
<PackageVersion Include="NUnit3TestAdapter" Version="5.0.0" />
<PackageVersion Include="Ramstack.Globbing" Version="2.2.0" />
<PackageVersion Include="Ramstack.Globbing" Version="2.3.1" />
<PackageVersion Include="System.Linq.Async" Version="6.0.1" />
</ItemGroup>
</Project>
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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;
Expand Down Expand Up @@ -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.

2 changes: 1 addition & 1 deletion src/Ramstack.FileSystem.Prefixed/PrefixedFileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down