Skip to content

mkdir fails with non-normalized path #634

@webOS101

Description

@webOS101

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.

Metadata

Metadata

Assignees

Labels

fixBug/defect, or a fix for such a problemmedium priority

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions