Created a new Directory class, which is safer to work with than the standard File class.