Add isAccessible method and trailing slash on getRootPath method