Skip to content

Commit b194a44

Browse files
authored
Update file list retrieval to include path parameter (#79)
Current Acode functionality is some another that current docs
1 parent c6e03dc commit b194a44

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/editor-components/file-list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ The File List API provides functionality to manage and interact with files and f
1111
const fileList = acode.require('fileList');
1212

1313
// Get list of all files
14-
const files = await fileList();
14+
const filelist = await fileList(path);
1515

1616
// Process files
17-
files.forEach(file => {
17+
filelist.children.forEach(file => {
1818
console.log(`Name: ${file.name}`);
1919
console.log(`Path: ${file.path}`);
2020
});

0 commit comments

Comments
 (0)