Skip to content

Commit afb7704

Browse files
committed
Add options to getFilesList
1 parent 75250c0 commit afb7704

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const getFsInfo = (remoteName) => {
118118
* @param remotePath {string} Name of the path in the remote
119119
* @returns {Function}
120120
*/
121-
export const getFilesList = (fs, remotePath) => {
121+
export const getFilesList = (fs, remotePath, options = {}) => {
122122
return new Promise((resolve, reject) => {
123123
if(!fs || fs === ""){
124124
reject("Invalid fs specified");
@@ -131,7 +131,8 @@ export const getFilesList = (fs, remotePath) => {
131131

132132
axiosInstance.post(urls.getFilesList, {
133133
fs,
134-
remote: remotePath
134+
remote: remotePath,
135+
opt: options
135136
}).then(res => {
136137
resolve(res.data);
137138
}, error => {

0 commit comments

Comments
 (0)