Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file.clone() break symlink #143

Closed
GongT opened this issue Jan 4, 2019 · 0 comments · Fixed by #146 · May be fixed by YoutacRandS-VA/gray-matter#4
Closed

file.clone() break symlink #143

GongT opened this issue Jan 4, 2019 · 0 comments · Fixed by #146 · May be fixed by YoutacRandS-VA/gray-matter#4

Comments

@GongT
Copy link

GongT commented Jan 4, 2019

const VinylFile = require('vinyl')
const a = new VinylFile({stat: Object.assign(new fs.Stats, {mode: 41453}) , symlink: 'xxxx' })
console.log(a.symlink , a.isSymbolic())  // xxxx true
const b = a.clone()
console.log(b.symlink , b.isSymbolic())  // null true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant