update mapping for edting files of same directory