Revision method getDirectoryTree