ls-files -k: a directory only can be killed if the index has a non-directory