listNotes
List all the object notes
| param | type [= default] | description |
|---|---|---|
| fs | FsClient | a file system client |
| dir | string | The working tree directory path |
| gitdir | string = join(dir,'.git') | The git directory path |
| ref | string | The notes ref to look under |
| cache | object | a cache object |
| return | Promise<Array<{target: string, note: string}>> | Resolves successfully with an array of entries containing SHA-1 object ids of the note and the object the note targets |
Tip: If you need a clean slate, expand and run this snippet to clean up the file system.
window.fs = new LightningFS('fs', { wipe: true })
window.pfs = window.fs.promises
console.log('done')