pub fn write_to_file( content: Vec<u8>, file_path: &PathBuf, can_create: bool, can_overwrite: bool, ) -> Result<(), Error>