Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Log error in StaticFIleServer init if passed a non-directory path #1389
This PR updates the StaticFileServer to have a failable initializer, updates the initializer to fail if the
Motivation and Context
Currently the StaticFileServer documentation states the
How Has This Been Tested?
I have added a test which will try to create a StaticFileServer using a path to a file, should the StaticFileServer be successfully created then the test will fail. I have also stepped through the debugger to ensure the code functions as expected.