mirror of
https://github.com/golang/go
synced 2024-11-02 08:01:26 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue