diff options
Diffstat (limited to 'lib/path.js')
-rw-r--r-- | lib/path.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/path.js b/lib/path.js index bdae368c25..14805e05b8 100644 --- a/lib/path.js +++ b/lib/path.js @@ -403,18 +403,18 @@ exports.extname = function(path) { exports.exists = function(path, callback) { - _deprecationWarning('path', '`path.exists` is now called `fs.exists`'); require('fs').exists(path, callback); }; +module.deprecate('exists', 'It is now called `fs.exists`.'); exports.existsSync = function(path) { - _deprecationWarning('path', '`path.exists` is now called `fs.exists`'); return require('fs').existsSync(path); }; +module.deprecate('existsSync', 'It is now called `fs.existsSync`.'); -exports._makeLong = isWindows ? +exports._makeLong = isWindows ? function(path) { var resolvedPath = exports.resolve(path); |