code: def add_fileobj(self, fileobj, path, compress, flags=None):
          
          f = file_iter(fileobj)
          flags = flags or os.stat(path) & 0o777
          return self.add_stream(f, path, compress, flags)
docs: Add the contents of a file object to the MAR file.
  
          Args:
              fileobj (file-like object): open file object
              path (str): name of this file in the MAR file
              compress (str): One of 'xz', 'bz2', or None. Defaults to None.
              flags (int): permission of this file in the MAR file. Defaults to the permissions of `path`