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('/')
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 :Example ShellJS command to reproduce the error: