faculty.datasets.cp

faculty.datasets.cp(source_path, destination_path, project_id=None, recursive=False, object_client=None)

Copy a file or directory within a project’s datasets.

Parameters
source_pathstr

The source path in the project datasets to copy.

destination_pathstr

The destination path in the project datasets.

project_idstr, optional

The project to get files from. You need to have access to this project for it to work. Defaults to the project set by FACULTY_PROJECT_ID in your environment.

recursivebool, optional

If True, allows copying directories like a recursive copy in a filesystem. By default the action is not recursive.

object_clientfaculty.clients.object.ObjectClient, optional

Advanced - can be used to benefit from caching in chain interactions with datasets.