The ABC has announced it will not appeal a Federal Court ruling that found a police warrant used to raid its Sydney headquarters was valid.

Key points: AFP raided the ABC's Ultimo office in June 2019 searching for items associated with reports known as the Afghan files

AFP raided the ABC's Ultimo office in June 2019 searching for items associated with reports known as the Afghan files The ABC challenged the validity of the warrant, arguing it was "legally unreasonable", but the case was dismissed

The ABC challenged the validity of the warrant, arguing it was "legally unreasonable", but the case was dismissed ABC managing director David Anderson said the decision was a blow to media freedom

Australian Federal Police officers raided the public broadcaster's Ultimo office in June last year.

Police searched for computer files associated with a number of reports known as the Afghan files.

The 2017 stories centred on the alleged war crimes of Australian soldiers in Afghanistan, which were based on leaked documents from the Defence Department.

Officers seized 124 files on two USB sticks.

The ABC challenged the validity of the warrant in the Australian Federal Court, arguing it was "legally unreasonable".

The case was dismissed last Monday, and the ABC was ordered to pay the legal costs of all parties involved.

In a statement, the ABC's managing director David Anderson said the decision was a blow to media freedom, but that the broadcaster could not litigate its way to "reforming fundamentally bad laws".

"This outcome demonstrates the urgent need for law reform to ensure professional journalism and whistleblowers are appropriately protected," Mr Anderson said.

He said Australia was not up to the standard of other western democracies when it came to the protection of whistleblowers and public interest journalism.

"All Australians should be highly concerned at this outcome, the position the ABC has been put in and what this means for all journalists and the public's right to know."

Space to play or pause, M to mute, left and right arrows to seek, up and down arrows for volume. Watch Duration: 1 minute 42 seconds 1 m 42 s The ABC's managing director David Anderson says the judgement demonstrates an urgent need for law reform.

ABC chairwoman Ita Buttrose challenged the nation's leaders' commitment to a transparent democracy.

I live-tweeted the raids on the ABC — and it was a first for the AFP John Lyons spent nine hours in a room with six AFP officers — who were unfailingly polite and respectful — but who were doing something he believed attacked the very essence of journalism. Read more Read more

"If our elected representatives in Canberra truly believe in Australia as a transparent democracy, it's time for them to show leadership and take action," Ms Buttrose said.

"Supporting media freedom doesn't mean making allowance for journalists to break the law — it means having laws that allow journalists to safely do reporting in the public interest."

She said no-one wanted Australia to be a "secretive state" where reporters and whistleblowers faced prosecution for stories the public had a right to know.

The AFP investigation into the reporting by Dan Oakes and Sam Clark is ongoing.