drupflare/worker - v1.0.0
    Preparing search index...

    Function listFiles

    • Lists stored files under a URI prefix.

      Escapes the LIKE metacharacters in the prefix. Drupal filenames legitimately contain _, which is a single-character wildcard in LIKE, so an unescaped prefix would match sibling directories -- and a directory listing that returns another directory's files is how a delete-by-prefix removes the wrong thing. The 50-byte LIKE-pattern ceiling measured on this platform applies, so a longer prefix is filtered in JS instead.

      Parameters

      • sql: FileSql
      • prefix: string
      • limit: number = 1_000

      Returns FileStat[]