File Properties

DESCRIPTION:

Retrieve file properties associated with a given WebDAV URl, such as creation date and length.

USAGE:

spserver.file.properties(url)

REQUIRED ARGUMENTS:

url
a WebDAV URL.

VALUE:

A named list of property values.

DETAILS:

This will cause an error if the URL does not exist on the WebDAV server. Otherwise, this will return a list containing the following elements:

name : the name of the file or directory.

isFolder : a logical value that is TRUE if the URL specifies a directory.

length : if the URL is a file, the length in bytes.

creationDate : a timeDate object giving the creation date of the file.

lastModifiedDate : a timeDate object giving the last modified date and time of the file.

EXAMPLES:


# spserver.file.properties(spserver.url("foo"))