Revision 5aef65a9 deps/npm/node_modules/graceful-fs/graceful-fs.js
deps/npm/node_modules/graceful-fs/graceful-fs.js | ||
---|---|---|
1 | 1 |
// this keeps a queue of opened file descriptors, and will make |
2 | 2 |
// fs operations wait until some have closed before trying to open more. |
3 | 3 |
|
4 |
var fs = require("fs") |
|
4 |
var fs_ = require("fs")
|
|
5 | 5 |
|
6 |
// there is such a thing as TOO graceful. |
|
7 |
if (fs.open === gracefulOpen) return |
|
6 |
var fs = module.exports = {} |
|
7 |
|
|
8 |
Object.getOwnPropertyNames(fs_).forEach(function(prop) { |
|
9 |
var desc = Object.getOwnPropertyDescriptor(fs_, prop) |
|
10 |
Object.defineProperty(fs, prop, desc) |
|
11 |
}) |
|
8 | 12 |
|
9 | 13 |
var queue = [] |
10 | 14 |
, constants = require("constants") |
Also available in: Unified diff