github.com/fzfile/BaiduPCS-Go@v0.0.0-20200606205115-4408961cf336/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 }