### Bug Report or Feature Request (mark with an `x`) ``` - [x] bug report -> please search issues before submitting - [ ] feature request ``` ### Versions. <!-- Output from: `ng --version`. If nothing, output from: `node --version` and `npm --version`. Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?) --> ``` $ ng --version _ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | | / ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | | /_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___| |___/ @angular/cli: 1.0.0 node: 7.5.0 os: darwin x64 @angular/animations: 4.0.2 @angular/common: 4.0.2 @angular/compiler: 4.0.2 @angular/core: 4.0.2 @angular/flex-layout: 2.0.0-rc.1 @angular/forms: 4.0.2 @angular/http: 4.0.2 @angular/material: 2.0.0-beta.3 @angular/platform-browser: 4.0.2 @angular/platform-browser-dynamic: 4.0.2 @angular/router: 4.0.2 @angular/cli: 1.0.0 @angular/compiler-cli: 4.0.2 @angular/language-service: 4.0.2 ``` ### Repro steps. <!-- Simple steps to reproduce this bug. Please include: commands run, packages added, related code changes. A link to a sample repo would help too. --> ``` ng g c subfolder/my-component -d ``` ### The log given by the failure. <!-- Normally this includes a stack trace and some more information. --> ### Desired functionality. <!-- What would like to see implemented? What is the usecase? --> It should not create the `subfolder` directory ### Mention any other details that might be useful. <!-- Please include a link to the repo if this is related to an OSS project. --> found the #4500 but I don't think is the same issue.