Skip to content
Myr

removed constants from express(1)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent f0e0073 · Browse files · 1 file+1 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−14 removed

  • other:+1 added−14 removed

1 file+1 added−14 removed

modified:bin/express+1 added-14 removed
3 unmodified lines
4 * Module dependencies.5 */67var fs = require('fs')8 , sys = require('sys')8 , exec = require('child_process').exec;910/**12 * COMPAT: expose constants13 */1415var constants;1617try {18 constants = require('constants');19} catch (err) {20 constants = process;21}2223/**11 * Framework version.12 */1314var version = '2.0.0-pre';
361 unmodified lines
376 */377378function emptyDirectory(path, fn) {379 fs.readdir(path, function(err, files){393 if (err && err.errno !== constants.ENOENT) throw err;380 if (err && 'ENOENT' != err.code) throw err;381 fn(!files || !files.length);382 });383}384
67 unmodified lines