Closed LuisPodestaGrip closed 5 months ago
@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
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.