diff --git a/index.js b/index.js index 7a7d51b..50a2871 100644 --- a/index.js +++ b/index.js @@ -33,7 +33,7 @@ function realpathSync(filepath) { if (fsBinding.realpath) { try { - return fsBinding.realpath(filepath, 'utf8'); + return fsBinding.realpathSync(filepath); } catch (err) { /* Probably RAM-disk on windows. */ }