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

Moving to the current directory #226

Closed
itsgoofer opened this issue Mar 11, 2016 · 6 comments
Closed

Moving to the current directory #226

itsgoofer opened this issue Mar 11, 2016 · 6 comments

Comments

@itsgoofer
Copy link

I would like to move some files and folders from a nested directory into the "current" directory (or the directory from where I'm calling the node CLI command). So I tried the following written inside bin/cspweb-ui.js:

var fs = require('fs-extra')

fs.move('./node_modules/@mominari/cspweb-ui/', './', function(err) {
  console.log(err)
})

but I'm getting the following error:

{ [Error: EEXIST: file already exists, link './node_modules/@mominari/cspweb-ui/' -> './']
  errno: -17,
  code: 'EEXIST',
  syscall: 'link',
  path: './node_modules/@mominari/cspweb-ui/',
  dest: './' }

Any ideas?

Thanks.

@jprichardson
Copy link
Owner

For context, what is the "current" directory?

@itsgoofer
Copy link
Author

It's the directory from where I'm executing the CLI command.

@RyanZim
Copy link
Collaborator

RyanZim commented Oct 26, 2016

@Omarfouad Have you tried .? Not sure; @jprichardson ?

@RyanZim
Copy link
Collaborator

RyanZim commented Nov 26, 2016

Going to close for lack of action.

@RyanZim RyanZim closed this as completed Nov 26, 2016
@wotermelon
Copy link

wotermelon commented May 15, 2017

I met the same problem when move to an existed directory, it's happened

@RyanZim
Copy link
Collaborator

RyanZim commented May 15, 2017

@Zhangmingze Please open a new issue with a reduced test case.

Repository owner locked and limited conversation to collaborators May 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants