Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterDescription
ftpdomainThe domain name of the FTP site.
userA valid user of the FTP site
passwordThe password of the user
parentpathThe location of the directory to be deleted
childpathThe name of the directory to delete
errorError status returned by function

See also

FTPGETFILE

Example

Code Block
declare function ftpdelfile, msg, utility
 
ftpdomain = 'my.ftp.site.com'
user = 'someone'
password = 'a valid password'
parentpath = 'myFtpFiles'
childpath = 'How_To_FTP'
 
fptdel = ftpdeldir(ftpdomain,user,password,parentpath,childpath,error)
 
if fptdel then
   swap char(13):char(10) with '|' in fptdel
   msg(@window,fptdel)
end else
   if error then
      x = msg(@window, 'Contents of Error: ':error)
   end else
      x = msg(@window, 'File Not Deleted')
   end
end