Function: url-pretty-length

url-pretty-length is a for file-size-human-readable, defined in files.el.gz.

This function is obsolete since 24.4; use file-size-human-readable instead.

Signature

(url-pretty-length FILE-SIZE &optional FLAVOR SPACE UNIT)

Documentation

Produce a string showing FILE-SIZE in human-readable form.

Optional second argument FLAVOR controls the units and the display format:

 If FLAVOR is nil or omitted, each kilobyte is 1024 bytes and the produced
    suffixes are "k", "M", "G", "T", etc.
 If FLAVOR is si, each kilobyte is 1000 bytes and the produced suffixes
    are "k", "M", "G", "T", etc.
 If FLAVOR is iec, each kilobyte is 1024 bytes and the produced suffixes
    are "KiB", "MiB", "GiB", "TiB", etc.

Optional third argument SPACE is a string put between the number and unit. It defaults to the empty string. We recommend a single space or non-breaking space, unless other constraints prohibit a space in that position.

Optional fourth argument UNIT is the unit to use. It defaults to "B" when FLAVOR is iec and the empty string otherwise. We recommend "B" in all cases, since that is the standard symbol for byte.

Aliases

url-pretty-length (obsolete since 24.4)