updating directory tree