FileHound
    Preparing search index...

    Function size

    • Matches files by size, using an expression of an optional operator, a whole number and an optional unit, such as '>10kb' or '<= 1 mb'.

      The operators are <, <=, >, >= and == (or =), which is the default. The units, in multiples of 1024, are bytes (b, the default), kilobytes (k, kb), megabytes (m, mb), gigabytes (g, gb) and terabytes (t, tb), in any case. Use sizeEquals for an exact number of bytes.

      Parameters

      • expression: string

        the size expression

      Returns FilePredicate

      the predicate

      TypeError Thrown if the expression is not a string.

      ExpressionError Thrown if the expression can't be parsed or has an unknown unit.

      FileHound.create().match(size('>1mb'));