add slash to ipFile function