Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
21 lines
342 B
Plaintext
21 lines
342 B
Plaintext
'use strict';
|
|
|
|
var fs = require('graceful-fs');
|
|
|
|
function readLink(file, optResolver, onRead) {
|
|
fs.readlink(file.path, onReadlink);
|
|
|
|
function onReadlink(readErr, target) {
|
|
if (readErr) {
|
|
return onRead(readErr);
|
|
}
|
|
|
|
// Store the link target path
|
|
file.symlink = target;
|
|
|
|
onRead();
|
|
}
|
|
}
|
|
|
|
module.exports = readLink;
|