-
Notifications
You must be signed in to change notification settings - Fork 744
mkdir fails with non-normalized path #634
Copy link
Copy link
Closed
Labels
Milestone
Description
Node version (or tell us if you're using electron or some other framework): v6.8.0
ShellJS version (the most recent version/Github branch you see the bug on): 0.7.5
Operating system: Mac
Description of the bug: Shell js exits with Error: EEXIST: file already exists when mkdir path is not normalized. You cannot trap this with a try/catch block.
Example ShellJS command to reproduce the error:
shelljs = require('shelljs');
shelljs.mkdir('-p', 'asdf/./');Expected result is that no error should be thrown and certainly the process should not terminate. '-p' flag should not fail for any existing path or part of path.
Reactions are currently unavailable