Object-Oriented Programming · Disney · Medium
Design an in-memory workspace that stores a hierarchy of resources, where each resource is either a file or a folder. The workspace must support creating a new file or folder inside a specified parent folder, and listing the direct children of a folder in the same order in which they were added. Deleting a resource removes it together with everything nested beneath it. A resource can also be relocated from its current folder to a different destination folder. A move is…