Navigation
This version will reach end of life on Feb 2018. To upgrade, go to the Learn more about upgrading your version of MongoDB.

listFiles()

listFiles()

Returns an array, containing one document per object in the directory. This function operates in the context of the mongo shell. The fields included in the documents are:

name

A string which contains the pathname of the object.

baseName

A string which contains the name of the object.

isDirectory

A boolean to indicate whether the object is a directory.

size

The size of the object in bytes. This field is only present for files.

←   _isWindows() load()  →