From 4389948e326a69ae604a1de1dbaee0d7eb82f461 Mon Sep 17 00:00:00 2001 From: MrReda Date: Thu, 10 May 2018 19:46:42 +0200 Subject: [PATCH] update doc for native functions ls and listFiles with the string parameter,which represent the string path to search in --- source/reference/method/listFiles.txt | 13 +++++++++++-- source/reference/method/ls.txt | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/source/reference/method/listFiles.txt b/source/reference/method/listFiles.txt index f9361dbc03e..3b405e626fa 100644 --- a/source/reference/method/listFiles.txt +++ b/source/reference/method/listFiles.txt @@ -1,6 +1,10 @@ -=========== +=================== listFiles() -=========== +=================== +listFiles() +=================== + + .. default-domain:: mongodb @@ -32,3 +36,8 @@ listFiles() The size of the object in bytes. This field is only present for files. + +.. method:: listFiles() + + Returns an array, containing one document per object in the + directory which was given between the parenthesis. diff --git a/source/reference/method/ls.txt b/source/reference/method/ls.txt index 757470528e9..2785b4d8a3f 100644 --- a/source/reference/method/ls.txt +++ b/source/reference/method/ls.txt @@ -1,6 +1,8 @@ -==== +============ ls() -==== +============ +ls() +============ .. default-domain:: mongodb @@ -16,3 +18,10 @@ ls() This function returns with output relative to the current shell session, and does not impact the server. + +.. method:: ls() + + Returns a list of the files in the given string path between parenthesis. + + This function returns with output relative to the current shell + session, and does not impact the server.