NetTalk Central

NetTalk FTP => FTP - Share Knowledge => Topic started by: Djordje Radovanovic on October 18, 2013, 09:15:49 AM

Title: FTP One File
Post by: Djordje Radovanovic on October 18, 2013, 09:15:49 AM
Code in this template looks now as this.

  #if(%DownloadTheFile=0)
    LocNETFTPQ.LocalFile        = sub(%LocalPath,x+1,len(%LocalPath) - ftpx)
    LocNETFTPQ.UseTempFile      = band(%RtnParStr,NetFTP:UseTempFile)
    LocNETFTPQ.Action           = ftp:ActionUpload
  #else
    LocNETFTPQ.Remotefile       = sub(%LocalPath,x+1,len(%LocalPath) - ftpx)
    LocNETFTPQ.Action           = ftp:ActionDownload
  #endif

Someone change x into ftpx but did not done change through all code and it cause error in compiling time so make I made change this code into

    LocNETFTPQ.LocalFile        = sub(%LocalPath,ftpx+1,len(%LocalPath) - ftpx)

and everything works well.

Best regards,

Djordje Radovanovic
Title: Re: FTP One File
Post by: Bruce on October 20, 2013, 09:58:31 AM
thanks - fixed in 7.27 (which is up already I think.)

cheers
Bruce