Skip to content

ls() not returning an Array #446

@jcbohin

Description

@jcbohin

Node version:

v6.2.0

ShellJS version (the most recent version/Github branch you see the bug on):

0.7.0

Operating system:

OSX 15.5.0

Description of the bug:

shelljs.ls() returns an object containing results (files and folders as elements of the array) and a bunch of methods and no longer an Array (as it used to do until 0.7 and as described in the docs :

Returns array of files in the given path, or in current directory if no path provided.

Example ShellJS command to reproduce the error:

require('shelljs').ls('/')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions