; and (II) order the person who received the directive to comply with the directive in its entirety or as modified. (B) Written statement Upon making a determination under subparagraph (A) or promptly thereafter, the court shall provide a written statement for the record of the reasons for the determination. (5) Appeals (A) Right of appeal The Attorney General or a person who receives a directive under subsection (b) may appeal a final order of the district court under this subsection not later than 30 days after entry of the order. (B) Procedure The United States Court of Appeals for the District of Columbia Circuit shall expedite the consideration of any appeal brought under this paragraph, and the expense or effort required to comply with a directive issued under subsection (b) shall not be a basis for staying a final order of the district court under this subsection pending appeal. (d) Enforcement of directives (1) Failure to comply If a person fails to comply with a directive issued under subsection (b), the Attorney General may file a petition for an order to compel the person to comply with the directive in the United States District Court for the District of Columbia, which shall have jurisdiction to review the petition. (2) Ex parte review (A) In general In considering a petition filed under paragraph (1), the court may review any information that the Attorney General, upon filing an affidavit under oath that disclosure of the information would harm the national security of the United States or harm the enforcement of criminal law, chooses to provide to the court solely for ex parte review. (B) No waiver of privilege The exercise of the authority under subparagraph (A) does not waive any applicable privilege. (3) Order to comply (A) In general Not later than 30 days after a petition is filed under paragraph (1), the court shall issue an order requiring the person to comply with the directive or any part of the directive, as issued or as modified, if the court finds that the directive meets the