pause reading the file so that the directory can be created