multi-account-post-schedule.../node_modules/graceful-readlink/index.js
2022-07-07 18:23:44 +02:00

13 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;
}
};