MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / list

Function list

src/background/sync/onedrive.js:52–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }
51 },
52 async list() {
53 let files = [];
54 let url = '/drive/special/approot/children';
55 while (url) {
56 const data = await this.loadData({
57 url,
58 responseType: 'json',
59 });
60 url = data['@odata.nextLink'] || '';
61 files = [
62 ...files,
63 ...data.value
64 .filter((item) => item.file && isScriptFile(item.name))
65 .map(normalize),
66 ];
67 }
68 return files;
69 },
70 get(item) {
71 const name = getItemFilename(item);
72 return this.loadData({

Callers

nothing calls this directly

Calls 3

isScriptFileFunction · 0.90
mapMethod · 0.80
filterMethod · 0.80

Tested by

no test coverage detected