![Netscape ENTERPRISE SERVER 6.1 Manual Download Page 94](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653094.webp)
Service Stage
94
Netscape Enterprise Server NSAPI Programmer’s Guide • April 2002 (Draft)
list-dir
Applicable in
Service
-class directives.
The
list-dir
function returns a sequence of text lines to the client in response to a
request whose method is INDEX. The format of the returned lines is:
name type size mimetype
The name field is the name of the file or directory. It is relative to the directory being
indexed. It is URL-encoded, that is, any character might be represented by
%xx
,
where
xx
is the hexadecimal representation of the character's ASCII number.
The type field is a MIME type such as
text/html
. Directories will be of type
directory
. A file for which the server doesn't have a type will be of type
unknown
.
The size field is the size of the file, in bytes.
The mtime field is the numerical representation of the date of last modification of
the file. The number is the number of seconds since the epoch (Jan 1, 1970 00:00
UTC) since the last modification of the file.
When remote file manipulation is enabled in the server, the
obj.conf
file contains
a
Service
-class function that calls
list-dir
for requests whose method is
INDEX
.
Parameters
Examples
type
optional, common to all Service-class functions
method
optional, common to all Service-class functions
query
optional, common to all Service-class functions
UseOutputStreamSize
optional, common to all Service-class functions
flushTimer
optional, common to all Service-class functions
ChunkedRequestBufferSize
optional, common to all Service-class functions
ChunkedRequestTimeout
optional, common to all Service-class functions
bucket
optional, common to all
obj.conf
functions
Service fn=list-dir method="INDEX"
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...