Use FileUtils instead.