Skip to main content
CopyOptions.filter - node__fs.d.ts - Node documentation
method CopyOptions.filter

Usage in Deno

```typescript import { type CopyOptions } from "node:node__fs.d.ts"; ```
CopyOptions.filter(
source: string,
destination: string,
): boolean | Promise<boolean>
Function to filter copied files/directories. Return `true` to copy the item, `false` to ignore it.

Parameters

source: string
destination: string

Return Type

boolean | Promise<boolean>