You can list files and apply filters. The returned list is paginated.
import { f0 } from'file0';// List first 100 filesconst { files,cursor,hasMore } =awaitf0.list();// List the second 100 filesif (hasMore) {const { files,cursor,hasMore } =awaitf0.list({ cursor });}// List the first 1000 filesconst { files,cursor,hasMore } =awaitf0.list({ limit:1000 });// List files that's name starts with 'user123/'// and ends with '.png'// and contains 'profile'constfiles=awaitf0.list({ endsWith:'.png', startsWith:'user123/', contains:'profile'});