source/factory.js
function getDirectoryContents(remotePath, options) {
            const getOptions = merge(baseOptions, options || {});
            return directoryContents.getDirectoryContents(remotePath, getOptions);
        }
function getDirectoryContents(remotePath, options) {
            const getOptions = merge(baseOptions, options || {});
            return directoryContents.getDirectoryContents(remotePath, getOptions);
        }
function getDirectoryContents ( remotePath , options ) { const getOptions = merge ( baseOptions , options || { } ) ; return directoryContents . getDirectoryContents ( remotePath , getOptions ) ; }
Get the contents of a remote directory
@param {String} remotePath The path to fetch the contents of
@param {GetDirectoryContentsOptions=} options Options for the remote the request
@returns {Promise.<Array.<Stat>>} A promise that resolves with an array of remote item stats
@memberof ClientInterface
@example
const contents = await client.getDirectoryContents("/");
Get the contents of a remote directory