sleep while file is stored