I don't remember why I opted to not use os.Samefile.