Set up directories and files