Added generic path handling method and specific method for rebuild preservation; touch and mkdir methods not yet added and so will break