Rewrite get and put methods to give a file object instead of a path string