def add_fileobj(self, fileobj, path, compress, flags=None):
f = file_iter(fileobj)<EOL>flags = flags or os.stat(path) & <NUM_LIT><EOL>return self.add_stream(f, path, compress, flags)<EOL>
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`