Implement metadata function.
getFile() and gitDirectory()