add setCurrentPath function in util/file