PHP » GoLang |
login |
register |
about
|
is_writeableis_writeable[code] func IsWriteable(filename string) bool { _, err := syscall.Open(filename, syscall.O_WRONLY, 0) if err != nil { return false } return true } [/code] |