mirror of
https://github.com/golang/go
synced 2024-11-11 21:00:23 -07:00
os: make return type of FileInfo.Permission() consistent with related functions
(uint32 rather than int) R=golang-dev, r CC=golang-dev https://golang.org/cl/1958048
This commit is contained in:
parent
d0459447fa
commit
668f05aaf1
@ -53,4 +53,4 @@ func (f *FileInfo) IsSymlink() bool { return (f.Mode & syscall.S_IFMT) == syscal
|
||||
func (f *FileInfo) IsSocket() bool { return (f.Mode & syscall.S_IFMT) == syscall.S_IFSOCK }
|
||||
|
||||
// Permission returns the file permission bits.
|
||||
func (f *FileInfo) Permission() int { return int(f.Mode & 0777) }
|
||||
func (f *FileInfo) Permission() uint32 { return f.Mode & 0777 }
|
||||
|
Loading…
Reference in New Issue
Block a user