hooks.parse_features_json

hooks.parse_features_json(file: Union[pathlib.Path, str]) List[pathlib.Path]

Parse a JSON file containing filepaths.

Parameters

file – A filepath to a JSON file containing a features field, which contains a list of dictionaries, where each dictionary must have at least an remove and a resources field.

Returns

A list of file paths from the resources field, if the remove field is True.