Get User URL

DESCRIPTION:

Get a WebDAV URL in the persistent server WebDAV storage.

USAGE:

spserver.url(file="", user.name=spserver.user.name())

OPTIONAL ARGUMENTS:

file
file name within the specified user directory,possibly including slashes.
user.name
user name. "" stands for the common directory.

VALUE:

A full WebDAV URL for the specified file within the persistent server WebDAV storage.

DETAILS:

Return the URL for permanent storage for the given user. If user.name is not given, the default is to use the current user name. If user.name is given as "", this specifies the common storage area. The file argument is pasted on the end, to construct a complete URL. Illegal URL characters (like spaces) are converted to the appropriate URL characters.

EXAMPLES:

# URL to current user directory

spserver.url()

# URL to file foo in current user directory

spserver.url("foo")

# URL to file foo in subdirectory sub in current user directory

spserver.url("sub/foo")

# URL to file foo in user directory for "joe"

spserver.url("foo","joe")

# URL to file foo in the common directory

spserver.url("foo","")