Skip to content

Commit 861ad73

Browse files
file list added
1 parent a3d504b commit 861ad73

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codebolt/codeboltjs",
3-
"version": "1.1.38",
3+
"version": "1.1.39",
44
"description": "",
55
"keywords": [],
66
"author": "",

src/modules/fs.ts

+5-2
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)