Add directory_mode to common file parameters to prevent errors.