added the processing of a directory tree