REBOL Document

Info? - Function Summary


Summary:

Returns information about a file or url.

Usage:

info? target

Arguments:

target - The target argument. (must be: file url)

Description:

The information is returned within an object that has SIZE, DATE, and TYPE words. These can be accessed in the same manner as other objects.


    info: info? %file.txt
    print info/size
    5221


    print info/date
    9-Mar-2004/0:59:50-8:00

Related:

dir? - Returns TRUE if a file or URL is a directory.
exists? - Determines if a file or URL exists.
modified? - Returns the last modified date of a file or URL.
size? - Returns the size of a file or URL's contents.


<Back | Index | Next>

Copyright 2004 REBOL Technologies