change directory name and status