CopyOptions.filter - Node documentation
method CopyOptions.filter

Usage in Deno

import { type CopyOptions } from "node:fs";
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>