Collect directories and upload files