Minor path change for the contents function

Changed the repo contents function to include the given path as part of the url so that it will return directories instead of always the root.