Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

generate an empty folder ,“-p” #1

Open
GeorageLiang opened this issue Feb 10, 2017 · 5 comments
Open

generate an empty folder ,“-p” #1

GeorageLiang opened this issue Feb 10, 2017 · 5 comments

Comments

@GeorageLiang
Copy link
Contributor

GeorageLiang commented Feb 10, 2017

_shelljs2.default.exec('mkdir -p ' + _path2.default.dirname(outPath));,will generate an empty folder,-p,use _shelljs2.default.mkdir('-p', _path2.default.dirname(outPath)); will not genertate

@corysimmons
Copy link
Owner

@GeorageLiang
Copy link
Contributor Author

GeorageLiang commented Feb 10, 2017

oh, the index.js what i saw is compiled,when i run command an empty folder,"-p" will generate, when i use shelljs.mkdir() replace shelljs.exec() that empty folder,“-p” will not generate

@corysimmons
Copy link
Owner

  • shelljs.mkdir() will generate an empty directory.
  • shelljs.exec('mkdir -p') will not.

Is this correct?

@GeorageLiang
Copy link
Contributor Author

shelljs.exec('mkdir -p') will generate an empty directory.
shelljs.mkdir() will not.

@corysimmons
Copy link
Owner

PR please.

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

No branches or pull requests

2 participants