github.com/qjfoidnh/BaiduPCS-Go@v0.0.0-20231011165705-caa18a3765f3/pcsutil/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  }