Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

DirEntry.subdirs returns an array of files contained in the dir and its subdirs #467

Closed
@sebawita

Description

@sebawita

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Area

- [ ] devkit
- [x] schematics

Versions

node --version
v6.9.1

npm --version
5.6.0

package.json
"@angular-devkit/core": "^0.4.2",
"@angular-devkit/schematics": "^0.4.2",
"@schematics/angular": "^0.4.2",

macOS - High Sierra

Repro steps

const dir = tree.getDir('folder');
const folders = dir.subdirs; // <-folders contain the names of the files

Desired functionality

My expectation would be for subdir to return an array of subdirectories.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions