Support opening a node from a symbolic link file, redirecting to the target instead of opening the symlink itself.
This is a feature provided by FileStream of .NET 6, but it requires some small adjustments in the behavior of LazyFileStream.
Also fix an issue where opening a non-existing file for writing was throwing an exception.
Example
Create a symbolic link with
mklink link.nds original.nds
Open it like a regular file
var node = NodeFactory.FromFile("link.nds"); // this is opening original.nds
It can be very useful to link to test files without copying them in each repo.
Description
Support opening a node from a symbolic link file, redirecting to the target instead of opening the symlink itself. This is a feature provided by
FileStream
of .NET 6, but it requires some small adjustments in the behavior ofLazyFileStream
. Also fix an issue where opening a non-existing file for writing was throwing an exception.Example
It can be very useful to link to test files without copying them in each repo.