def execute()

in aws_lambda_builders/actions.py [0:0]


    def execute(self):
        deps_manager = DependencyManager(self.source_dir, self.artifact_dir, self.dest_dir, self.manifest_dir)

        for dependencies_source, new_destination in deps_manager.yield_source_dest():
            if os.path.islink(dependencies_source) and self.maintain_symlinks:
                os.makedirs(os.path.dirname(new_destination), exist_ok=True)
                linkto = os.readlink(dependencies_source)
                create_symlink_or_copy(linkto, new_destination)
                shutil.copystat(dependencies_source, new_destination, follow_symlinks=False)
            elif os.path.isdir(dependencies_source):
                copytree(dependencies_source, new_destination, maintain_symlinks=self.maintain_symlinks)
            else:
                os.makedirs(os.path.dirname(new_destination), exist_ok=True)
                shutil.copy2(dependencies_source, new_destination)