Lines Matching refs:cb
53 function close (fd, cb) {
60 if (typeof cb === 'function')
61 cb.apply(this, arguments)
111 function readFile (path, options, cb) {
113 cb = options, options = null
115 return go$readFile(path, options, cb)
117 function go$readFile (path, options, cb, startTime) {
120 enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()])
122 if (typeof cb === 'function')
123 cb.apply(this, arguments)
131 function writeFile (path, data, options, cb) {
133 cb = options, options = null
135 return go$writeFile(path, data, options, cb)
137 function go$writeFile (path, data, options, cb, startTime) {
140 enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
142 if (typeof cb === 'function')
143 cb.apply(this, arguments)
152 function appendFile (path, data, options, cb) {
154 cb = options, options = null
156 return go$appendFile(path, data, options, cb)
158 function go$appendFile (path, data, options, cb, startTime) {
161 enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
163 if (typeof cb === 'function')
164 cb.apply(this, arguments)
173 function copyFile (src, dest, flags, cb) {
175 cb = flags
178 return go$copyFile(src, dest, flags, cb)
180 function go$copyFile (src, dest, flags, cb, startTime) {
183 enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()])
185 if (typeof cb === 'function')
186 cb.apply(this, arguments)
195 function readdir (path, options, cb) {
197 cb = options, options = null
200 ? function go$readdir (path, options, cb, startTime) {
202 path, options, cb, startTime
205 : function go$readdir (path, options, cb, startTime) {
207 path, options, cb, startTime
211 return go$readdir(path, options, cb)
213 function fs$readdirCallback (path, options, cb, startTime) {
218 [path, options, cb],
227 if (typeof cb === 'function')
228 cb.call(this, err, files)
350 function open (path, flags, mode, cb) {
352 cb = mode, mode = null
354 return go$open(path, flags, mode, cb)
356 function go$open (path, flags, mode, cb, startTime) {
359 enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()])
361 if (typeof cb === 'function')
362 cb.apply(this, arguments)
421 var cb = args.pop()
422 if (typeof cb === 'function')
423 cb.call(null, err)