FileHound
    Preparing search index...

    Function applyFilterSync

    • Matches files using a synchronous custom function. Can be used with both FileHound.find and FileHound.findSync.

      Parameters

      • fn: (file: FileView) => boolean

        returns true for files to include

      Returns FilePredicate

      the predicate

      FileHound.create().match(applyFilterSync(file => file.sizeSync() > 0));