updated the leading zero and create path if not exist