File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @codebolt/codeboltjs" ,
3- "version" : " 1.1.38 " ,
3+ "version" : " 1.1.39 " ,
44 "description" : " " ,
55 "keywords" : [],
66 "author" : " " ,
Original file line number Diff line number Diff line change @@ -164,12 +164,15 @@ const cbfs = {
164164 * @description Lists all files.
165165 * @returns {Promise<FileListResponse> } A promise that resolves with the list of files.
166166 */
167- listFile : ( filePath :string ) => {
167+ listFile : ( folderPath :string , isRecursive = false ) => {
168168 return new Promise ( ( resolve , reject ) => {
169169 cbws . getWebsocket . send ( JSON . stringify ( {
170170 "type" : "fsEvent" ,
171171 "action" : "fileList" ,
172-
172+ message :{
173+ folderPath,
174+ isRecursive
175+ }
173176 } ) ) ;
174177 cbws . getWebsocket . on ( 'message' , ( data : string ) => {
175178 const response = JSON . parse ( data ) ;
You can’t perform that action at this time.
0 commit comments