LOCALMKDIR Create a local directory
Syntax:
LOCALMKDIR(directory)
- directory: local directory to be created.
Return value:
LOCALMKDIR will return “OK” if the local directory has been created successfully.
If the operation fails it will return an error code. You may retrieve the return value and execute various operations depending on this value. See Error handling.
See also:
MKDIR
LOCALCWDIR
LOCALRMDIR
LOCALCHDIR
Examples:
# Create a local dir LOCALMKDIR("C:\foo") # Connect to ftp.myftp.com OPENHOST("ftp.myftp.com","myuser","mypassword") # Go to C:\dest_dir LOCALCHDIR("C:\dest_dir\") # Create C:\dest_dir\images LOCALMKDIR("images") # Download all images from the FTP site GETFILE("images/*.*") CLOSEHOST