Casbin.NET
Casbin.NET copied to clipboard
Handle paths with System.IO.Path
The path variables in the Enforcer constructor handle everything as relative paths.
This change will help to use files from cloud storage or other sources that isn't in the project folder.
@sagilio @xcaptain @huazhikui
@sagilio
I have written a simple test for this issue, lt may already support relative paths. Could you write a sample unit test for your case?
[Fact]
public void TestEnforceWithRelativePath()
{
var e = new Enforcer("./examples/basic_model.conf");
Assert.NotNull(e.GetModel());
}

Closed as stale