MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / scan

Function scan

tests/modules/io/files/files_FIXTURE.js:3–8  ·  view source on GitHub ↗
(files, path)

Source from the content-addressed store, hash-verified

1import files from "embedded:storage/files"
2
3function scan(files, path) {
4 const result = [];
5 for (const item of files.scan(path))
6 result.push(item);
7 return result.sort();
8}
9
10function deleteTree(files, path) {
11 try {

Callers 1

scan-directory.jsFile · 0.90

Calls 2

scanMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected