check if a directory exists and create it if necessary,distutils.dir_util.mkpath(path)