Class for manipulating directory trees