Skip to main content
CopySyncOptions.filter - fs - Node documentation
method CopySyncOptions.filter

Usage in Deno

import { type CopySyncOptions } from "node:fs";
CopySyncOptions.filter(
source: string,
destination: string,
): 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