I have the following function which creates a file at a particular path:
exists, err := IsFileExists(path)