Sets of queries the current directory. Also can create or delete a directory.
Synopsis
error = InetDir(dir, operation)
Args
operation is one of the following:
Value | Meaning |
---|---|
GET | Get the current directory. dir is the name of the variable where you wish the directory name stored. Quote this if passing it directly. |
SET | Set the current directory. dir is the desired directory name. |
CREATE | Create a directory. dir is the desired directory name. |
DELETE | Delete a directory. dir is the desired directory name. |
If omitted, operation defaults to "SET".
Returns
An empty string if successful, or an error message if a problem.
Notes
You can call InetDir only if the current server handle has been set to use FTP protocol.
If you call InetDir before calling InetConnectUrl(), InetConnect() or some other function to set the current server handle, then a REXX SYNTAX condition is raised. CONDITION('E') returns error number 40.1 and CONDITION('D') returns the message DLL function "INETDIR" reported server handle not open!. Note: If the FTP server is running on an operating system that has case-sensitive filenames, such as UNIX, you may need to specify the filename in the correct case.