Prepare directories