def add_gdrive_file_folder(self, folder_id): """Add file to parent folder if exists""" file_id = self.source_gdrive_id from ggrc.gdrive import file_actions if folder_id: file_link = file_actions.add_gdrive_file_folder(file_id, folder_id) else: file_link = file_actions.get_gdrive_file_link(file_id) self._update_fields(file_link)