bb.coroutine(function * (file, mode) { if (process.platform === "win32") { return true } const info = yield stat(file) return info.isFile() ? Number((info.mode & 0o777).toString(8)) === mode : false })
Promise.coroutine(function * (file, opts) { const s = yield stat(file) return s.isFile() ? yield read(file, opts) : null })
bb.coroutine(function * (file, mode) { if (process.platform === "win32") { return true } const info = yield stat(file) return info.isFile() ? Number((info.mode & 0o777).toString(8)) === mode : false })
Promise.coroutine(function * (file, opts) { const s = yield stat(file) return s.isFile() ? yield read(file, opts) : null })