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

Create symlink with different name than destination #303

Closed
chriskinsman opened this issue Oct 12, 2018 · 2 comments · Fixed by #345
Closed

Create symlink with different name than destination #303

chriskinsman opened this issue Oct 12, 2018 · 2 comments · Fixed by #345

Comments

@chriskinsman
Copy link

I have a directory structure like:

www
|-src-public

I want to create a symlink in www named public that points to src-public.

I can't figure out how to do this. The following code is what I believe should work:

return vinylfs.src('./src-public', {followSymlinks: false, relativeSymlinks: true})
    .pipe(vinylfs.symlink('./public'));

Instead it creates a new directory public under www and puts a symbolic link named src-public in it that points to www/src-public.

What is the proper way to do this?

@phated
Copy link
Member

phated commented Oct 12, 2018

I think you need to glob

@erikkemperman
Copy link
Member

This was also, tangentially, discussed in #245 but with no clear resolution I think.

Personally I think we ought to support symlinks with different basenames somehow but I don’t know what the API would look like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants