def assemble_directory(self, base=None, do_copy=False):
        if self.input_ports_order or do_copy:
            directory = self.interpreter.filePool.create_directory(
                    prefix='vt_tmp_makedirectory_')

            # Copy everything in base
            if base is not None:
                for name in os.listdir(base.name):
                    src = os.path.join(base.name, name)
                    dst = os.path.join(directory.name, name)
                    if os.path.isdir(src):
                        shutil.copytree(src, dst)
                    else:
                        shutil.copy2(src, dst)
            # Copy from port specs
            for name in self.input_ports_order:
                shutil.copy(self.get_input(name).name,
                            os.path.join(directory.name, name))
            return directory
        else:
            return base
Simulates a round-trip call against the given API / URL
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/tej/init.py/AssembleDirectoryMixin.assemble_directory--crossover with--dataset/ETHPy150Open timothycrosley/hug/hug/test.py/call