diff --git a/src/os/file_go_other.go b/src/os/file_go_other.go index 351de7ac..c03ff468 100644 --- a/src/os/file_go_other.go +++ b/src/os/file_go_other.go @@ -1,3 +1,4 @@ +//go:build !go1.16 // +build !go1.16 package os @@ -49,3 +50,8 @@ func (m FileMode) IsDir() bool { func (m FileMode) IsRegular() bool { return false } + +// Perm is a stub, always returning 0. +func (m FileMode) Perm() FileMode { + return 0 +}