Create a scoped path resolver function that checks the resolved path is under the provided root directory or throw PathOutOfScopeError
direcory to scope
secure resolver function
Create a scoped path resolver function that checks the resolved path is under the provided root directory or throw PathOutOfScopeError