Timothy, struct stat { /* ... */ off_t st_size; /* total size, in bytes */ /* ... */ };
off_t is a signed integer. File offsets can be negative. Peter On Sunday, August 13, 2017 at 8:27:21 PM UTC-4, Timothy Raymond wrote: > > I was working with filepath.Walk(), and I noticed something peculiar about > the os.FileInfo interface that the filepath.WalkFunc receives. According to > the definition here: https://golang.org/pkg/os/#FileInfo, the Size() > method returns an int64. Shouldn't this be a uint64? Is there a sane > instance on some platform of a negative file size? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.