class_docstr: Provides a uniform interface to communicate with the Lightly API.
  
  The APIWorkflowClient is used to communicate with the Lightly API. The client
  can run also more complex workflows which include multiple API calls at once.
  
  The client can be used in combination with the active learning agent.
  
  Args:
      token:
          The token of the user. If it is not passed in during initialization, the token
          will be read from the environment variable LIGHTLY_TOKEN.
          For further information on how to get a token,
          see: https://docs.lightly.ai/docs/install-lightly#api-token
      dataset_id:
          The id of the dataset. If it is not set, but used by a workflow, the last
          modfied dataset is taken by default.
      embedding_id:
          The id of the embedding to use. If it is not set, but used by a workflow,
          the newest embedding is taken by default
      creator:
          Creator passed to API requests.
class_docstr_tok: ["Provides","a","uniform","interface","to","communicate","with","the","Lightly","API",".","The","APIWorkflowClient","is","used","to","communicate","with","the","Lightly","API",".","The","client","can","run","also","more","complex","workflows","which","include","multiple","API","calls","at","once",".","The","client","can","be","used","in","combination","with","the","active","learning","agent",".","Args",":","token",":","The","token","of","the","user",".","If","it","is","not","passed","in","during","initialization",",","the","token","will","be","read","from","the","environment","variable","LIGHTLY_TOKEN",".","For","further","information","on","how","to","get","a","token",",","see",":","https",":","\/\/docs.lightly.ai\/docs\/install-lightly","#","api-token","dataset_id",":","The","id","of","the","dataset",".","If","it","is","not","set",",","but","used","by","a","workflow",",","the","last","modfied","dataset","is","taken","by","default",".","embedding_id",":","The","id","of","the","embedding","to","use",".","If","it","is","not","set",",","but","used","by","a","workflow",",","the","newest","embedding","is","taken","by","default","creator",":","Creator","passed","to","API","requests","."]
docstr: Downloads the list of filenames from the server.
  
  This is an expensive operation, especially for large datasets.
  
  Returns:
      Names of files in the current dataset.
  
  :meta private:  # Skip docstring generation
docstr_tok: ["Downloads","the","list","of","filenames","from","the","server",".","This","is","an","expensive","operation",",","especially","for","large","datasets",".","Returns",":","Names","of","files","in","the","current","dataset",".",":","meta","private",":","#","Skip","docstring","generation"]
code: def get_filenames(self) -> List[str]:
      """Downloads the list of filenames from the server.
  
      This is an expensive operation, especially for large datasets.
  
      Returns:
          Names of files in the current dataset.
  
      :meta private:  # Skip docstring generation
      """
      filenames_on_server = (
          self._mappings_api.get_sample_mappings_by_dataset_id(
              dataset_id=self.dataset_id, field="fileName"
          )
      )
      return filenames_on_server
  
imports: import os
  import platform
  import warnings
  from io import IOBase
  from typing import *
  import requests
  from requests import Response
  from urllib3.exceptions import HTTPError
  from lightly.__init__ import __version__
  from lightly.api import _version_checking, utils
  from lightly.api.api_workflow_artifacts import _ArtifactsMixin
  from lightly.api.api_workflow_collaboration import _CollaborationMixin
  from lightly.api.api_workflow_compute_worker import _ComputeWorkerMixin
  from lightly.api.api_workflow_datasets import _DatasetsMixin
  from lightly.api.api_workflow_datasources import _DatasourcesMixin
  from lightly.api.api_workflow_download_dataset import _DownloadDatasetMixin
  from lightly.api.api_workflow_export import _ExportDatasetMixin
  from lightly.api.api_workflow_predictions import _PredictionsMixin
  from lightly.api.api_workflow_selection import _SelectionMixin
  from lightly.api.api_workflow_tags import _TagsMixin
  from lightly.api.api_workflow_upload_embeddings import _UploadEmbeddingsMixin
  from lightly.api.api_workflow_upload_metadata import _UploadCustomMetadataMixin
  from lightly.api.swagger_api_client import LightlySwaggerApiClient
  from lightly.api.utils import DatasourceType
  from lightly.openapi_generated.swagger_client.api import CollaborationApi, DatasetsApi, DatasourcesApi, DockerApi, EmbeddingsApi, JobsApi, MappingsApi, MetaDataConfigurationsApi, PredictionsApi, QuotaApi, SamplesApi, SamplingsApi, ScoresApi, TagsApi
  from lightly.openapi_generated.swagger_client.models import Creator, DatasetData
  from lightly.openapi_generated.swagger_client.rest import ApiException
  from lightly.utils import reordering
label_desc: Use image node_id 5 for calling the ApiWorkflowClient obj's underlying member method code with example usage: obj.get_filenames() and returns: filenames_on_server