mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2025-10-12 07:34:58 +00:00
structure, layout and automation
This commit is contained in:
20
node_modules/vinyl-fs/lib/src/read-contents/read-symbolic-link.js
generated
vendored
Normal file
20
node_modules/vinyl-fs/lib/src/read-contents/read-symbolic-link.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
'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;
|
Reference in New Issue
Block a user