---
title: "List Files"
description: "List workspace files, optionally filtered by name."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/file/list"
---
# List Files

> List workspace files, optionally filtered by name.

<block-meta block="Yes" channels="Any" folder="file" group="File" groupTo="/build/workflows/blocks/file" icon="i-lucide-list" pipe="Value" scope="Any" tool="Yes" type="file.list">



</block-meta>

**List Files** returns [workspace files](https://docs.vettero.com/data/files) for this workspace. Expired files are omitted unless **Include expired** is on. Soft-deleted files are never listed.

Copy an `id` into [Get File](https://docs.vettero.com/build/workflows/blocks/file/get) or other File blocks.

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Name contains (optional)
      </strong>
    </td>
    
    <td>
      Case-insensitive match on the display name
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Page size
      </strong>
    </td>
    
    <td>
      1–500. Default <strong>
        50
      </strong>
      
       if empty
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Skip
      </strong>
    </td>
    
    <td>
      Number of files to skip. Use <code>
        nextSkip
      </code>
      
       from a previous list
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Include expired
      </strong>
    </td>
    
    <td>
      Include files whose expiry time has already passed
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after the list is loaded
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`):

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        files
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      File records (same shape as <a href="https://docs.vettero.com/build/workflows/blocks/file/get">
        Get File
      </a>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        nextSkip
      </code>
    </td>
    
    <td>
      number
    </td>
    
    <td>
      Present when another page exists. Pass it as <strong>
        Skip
      </strong>
    </td>
  </tr>
</tbody>
</table>

## Use case

- Show recent uploads, then send one with [File](https://docs.vettero.com/build/workflows/blocks/out/file) output.
- Find a file by name before [Persist File](https://docs.vettero.com/build/workflows/blocks/file/persist) or [Delete File](https://docs.vettero.com/build/workflows/blocks/file/delete).

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
