def _fetch_files_metadata(client, paths): """Return metadata for files from paths.""" files = {} if is_project_unsupported(client): return files migrate(client) for _, dataset in client.datasets.items(): for file_ in dataset.files: path = file_.path if path in paths: files[path] = file_ return files
def migrate_project(client, progress_callback=None, commit_message=None): """Migrate all project's entities.""" return migrate(client=client, progress_callback=progress_callback)
def migrate_project_no_commit(client, progress_callback=None): """Migrate all project's entities but do not commit changes.""" return migrate(client=client, progress_callback=progress_callback)
def _migrate_project(self, client): if is_project_unsupported(client): return migrate(client)