Added classes and tests of directory operations.