Prepare file and folder