verify file path function