get_directory_listing#

dkist.net.globus.get_directory_listing(path, endpoint=None)[source]#

Retrieve a list of all files in the path.

Parameters:
  • path (pathlib.Path or str) – The path to list on the endpoint.

  • endpoint (str or None) – The name or uuid of the endpoint to use or None to attempt to connect to a local endpoint.

Returns:

listing (tuple) – A list of all the files.