Wait until file downloaded to display directory