Docs Menu

listFiles()

참고

여기에 나열된 네이티브 메서드는 레거시 mongo shell을 위한 것입니다.

mongosh 에서 네이티브 메서드를 사용하려면 mongosh 의 네이티브 메서드를 참조하세요.

listFiles()

Returns an array, containing one document per object in the directory. This function operates in the context of mongosh. 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.