Skip to main content
Version: 1.0

File searching

You can try by running this code at your console:

deno run https://mega.js.org/demos/file-searching-demo.js
import { getLoggedInStorage } from './logging-in-demo.js'
const storage = await getLoggedInStorage()

console.log('Those are all .jpeg files in the storage:')
console.log(storage.filter(e => e.name.endsWith('.jpeg'), true))

console.log('Those are all README files in the storage:')
console.log(storage.filter('README', true))