github.com/iikira/iikira-go-utils@v0.0.0-20230610031953-f2cb11cde33a/utils/checkaccess/check_unix.go (about)

     1  // +build !windows,!plan9,!aix
     2  
     3  package checkaccess
     4  
     5  import (
     6  	"syscall"
     7  )
     8  
     9  func AccessRDWR(path string) bool {
    10  	return syscall.Access(path, syscall.O_RDWR) == nil
    11  }