dotfiles/.vscode/extensions/saviorisdead.RustyCode-0.18.0/node_modules/graceful-readlink/index.js
Cyryl Płotnicki 2f946d6200 Add .vscode
2016-09-11 10:29:13 +02:00

12 lines
188 B
JavaScript

var fs = require('fs')
, lstat = fs.lstatSync;
exports.readlinkSync = function (p) {
if (lstat(p).isSymbolicLink()) {
return fs.readlinkSync(p);
} else {
return p;
}
};