Skip to content

Feature request: Add file tags (categories) to files in a dataset #15

@bnavigator

Description

@bnavigator

If I am not mistaken, the categories field of a file in a dataset cannot be set by dataset.add_file() at the moment and is not part of the File class.

https://guides.dataverse.org/en/latest/api/native-api.html#updating-file-metadata

def add_file(self, dv_path: str, local_path: str, description: str = ""):
"""Adds a file to the dataset based on the provided path.
Args:
filename (str): Path to the file to be added.
description (str, optional): Description of the file. Defaults to "".
"""

class File(BaseModel):
filename: str
description: Optional[str] = None
file_pid: Optional[str] = None
local_path: Optional[str] = None
dv_dir: Optional[str] = None

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions