Find out the right directory
Another interesting challenge. Given the following API:
public interface IFileRepository { void Save(IFile file); IFile[] GetFiles(string path, Recursion recursion); } public enum Recursion { None, OneLevel, Full }
And assuming that you are saving to a relational database, how are you going to build the GetFiles method?
Oh, and just to make things interesting, Save(IFile) may only perform a single SQL INSERT statement.

Comments
Comment preview