Receive Directory Names

EazyLink Server, V4.4, protocol level 01

Request for Z88 Directory Names in the current specified valid path. The Client application is responsible for supplying the complete path and necessary wildcard symbols, e.g. "*" (all files in current directory) or "//*" (all files in all sub-directories). If the path doesn't contain any wildcard specifier, the EazyLink server will not be able to return names back to the Client and just acknowledge with ESC "Z" (End of Names).

The EazyLink Server always returns the "." name which identifies the current directory. Then, if the specified path in the request command defines one sub-directory or more, a ".." parent directory name is sent as well. Both identifiers as sent before any directory names.

As shown below, each name is sent with a leading ESC "N"; the indicator that a name follows. When the last name has been transmitted ESC "Z" is sent.

Directory names are sent with FULL path specification.

------------------------------------------------------------------------------
Client Server Action
------------------------------------------------------------------------------
<ESC "d"> <Path> Request for directories in
<ESC "Z"> -> waiting <Path>

Process <Path> for names...

receiving <- <ESC "N"> <"."> Send current path symbol
receiving <- <ESC "N"> <".."> Send parent path symbol
receiving <- <ESC "N"> <DirName> Send full directory name
<- ...
receiving <- <ESC "Z"> End of Names
------------------------------------------------------------------------------

 

web analytics