create patch from dir