On Sun, Aug 13, 2017 at 5:27 PM, Timothy Raymond <xtjraymo...@gmail.com> 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?

Besides what everyone else says, I think that if we ever have to worry
about files between 9,223,372,036,854,775,807 and
18,446,744,073,709,551,615 bytes in size, the correct answer is to
change FileInfo so that the Size method returns int128.  After all, if
files can get that large, they can surely get to
18,446,744,073,709,551,616 bytes.

Ian

-- 
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.

Reply via email to