File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @codebolt/codeboltjs" ,
3
- "version" : " 1.1.38 " ,
3
+ "version" : " 1.1.39 " ,
4
4
"description" : " " ,
5
5
"keywords" : [],
6
6
"author" : " " ,
Original file line number Diff line number Diff line change @@ -164,12 +164,15 @@ const cbfs = {
164
164
* @description Lists all files.
165
165
* @returns {Promise<FileListResponse> } A promise that resolves with the list of files.
166
166
*/
167
- listFile : ( filePath :string ) => {
167
+ listFile : ( folderPath :string , isRecursive = false ) => {
168
168
return new Promise ( ( resolve , reject ) => {
169
169
cbws . getWebsocket . send ( JSON . stringify ( {
170
170
"type" : "fsEvent" ,
171
171
"action" : "fileList" ,
172
-
172
+ message :{
173
+ folderPath,
174
+ isRecursive
175
+ }
173
176
} ) ) ;
174
177
cbws . getWebsocket . on ( 'message' , ( data : string ) => {
175
178
const response = JSON . parse ( data ) ;
You can’t perform that action at this time.
0 commit comments