give some more meaningful variable name and reselect old index based on the contained data
if we already track the parent directory do not add new dir