update directory in ls command