Oh yes, and os.IsNotExist(err) can be used here to determine if the open failure was because the fail didn't exist.