Amazon Interview Question

How would you handle the design of a file/directory API.