listFiles()
MongoDB 5.0 은(는) 2024 10월을 기준으로 수명이 종료됩니다. 이 버전의 문서는 더 이상 지원되지 않습니다. 6.0 배포서버 업그레이드 5.0 하려면 MongoDB 업그레이드 절차를 참조하세요.
참고
여기에 나열된 네이티브 메서드는 레거시 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.