update the directory
remove backup file