< Rebol Programming

USAGE:

SIZE? target 

DESCRIPTION:

Returns the size of a file or URL's contents.

SIZE? is a function value.

ARGUMENTS

  • target -- (Type: file url)

(SPECIAL ATTRIBUTES)

  • catch

SOURCE CODE

size?: func [
    "Returns the size of a file or URL's contents." 
    [catch] 
    target [file! url!] 
    /local info
][
    info: throw-on-error [info? target] 
    either none? info [none] [info/size]
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.