def ensure_file(path):
 ensure_directory_containing(path)
 open(path, 'a+').close()

def ensure_file ( path ) : ensure_directory_containing ( path ) open ( path , 'a+' ) . close ( )
ensure that a file exists .