Code Monkey home page Code Monkey logo

Comments (4)

arturadib avatar arturadib commented on May 22, 2024

sounds like a bug indeed, will look into this soon, thanks Brendan.

from shelljs.

can3p avatar can3p commented on May 22, 2024

I still have the problems with cp function. Consider directory structure like this:
root/

  • dir1/
    • lib/
      • main.js

Work directory is root, and I try to copy dir1 to dir2

$ node

require('shelljs/global')
{}
cp('-R', 'dir1/*', 'dir2/')
shell.js: internal error
Error: ENOENT, no such file or directory 'dir2//lib'
at Object.fs.mkdirSync (fs.js:483:18)
at app/node_modules/shelljs/shell.js:306:14
at Array.forEach (native)
at _cp (app/node_modules/shelljs/shell.js:288:11)
at app/node_modules/shelljs/shell.js:1103:23
at repl:1:2
at REPLServer.self.eval (repl.js:111:21)
at Interface. (repl.js:250:12)
at Interface.EventEmitter.emit (events.js:93:17)
at Interface._onLine (readline.js:199:10)

$ node

require('shelljs/global')
{}
cp('-Rf', 'dir1/*', 'dir2/')
shell.js: internal error
Error: ENOENT, no such file or directory 'dir2//lib'
at Object.fs.mkdirSync (fs.js:483:18)
at app/node_modules/shelljs/shell.js:306:14
at Array.forEach (native)
at _cp (app/node_modules/shelljs/shell.js:288:11)
at app/node_modules/shelljs/shell.js:1103:23
at repl:1:2
at REPLServer.self.eval (repl.js:111:21)
at Interface. (repl.js:250:12)
at Interface.EventEmitter.emit (events.js:93:17)
at Interface._onLine (readline.js:199:10)

I'm using node 0.8.12 on Mac OS X 10.7.5, shelljs version is 0.0.8

from shelljs.

arturadib avatar arturadib commented on May 22, 2024

@can3p sorry, I can't reproduce the problem. is it still happening?

from shelljs.

arturadib avatar arturadib commented on May 22, 2024

@can3p if it is, can you please open a separate issue as the error is different from the original one here? thanks!

from shelljs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.