Implement helper method to create a URL to the resource from a directory
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>