Back to problems

ClayWorkspace Resource Tree

Object-Oriented Programming · Goldman Sachs · Medium

Requirements Build a workspace/resource manager that stores Resource instances in a dictionary keyed by resource ID. ResourceType has two possible values: FILE and FOLDER. The home area is represented by None as the parent ID. Begin with this interface: list_resources returns the resources directly contained by the specified folder as Resource instances, in a consistent order. Pass None as folder_id to list resources in the home area. Follow-up tasks: For a supplied resource…

Checking your access…