File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -560,37 +560,28 @@ on ulGetFormat pUrl,pCount
560560 end if
561561 end if
562562
563- break
564- case "ftp"
565- if tFilename is empty then # # require a file or directory path for FTP
566- put "invalid URL: " & quote & pUrl & quote into laUrlErrorStatus[pUrl ]
567- if laLoadReq[pUrl ] then put "error" into laUrlLoadStatus[pUrl ]
568- exit "ulGetFormat"
569- end if
570-
571- if tPort is empty then put ":21" into tPort
572-
573- if tUser is empty then
574- put "anonymous" into tUser
575- put "guest" into tPass
576- end if
577-
578563 break
579564 case "sftp"
580565 -- CW-2016-06-11: [[ External driver support ]] SFTP is only supported by external drivers.
581566 if lvExtDriver is empty then
582- put "invalid URL: " & quote & pUrl & quote into laUrlErrorStatus[pUrl ]
567+ put "sftp protocol not supported in this version" into laUrlErrorStatus[pUrl ]
583568 if laLoadReq[pUrl ] then put "error" into laUrlLoadStatus[pUrl ]
584569 exit "ulGetFormat"
585570 end if
571+ case "ftp"
572+ -- CW-2016-06-11: [[ External driver support ]] This processing is only needed by the internal driver.
573+ if lvExtDriver is empty then
574+ if tPort is empty then put ":21" into tPort
586575
587- if tFilename is empty then # # require a file or directory path for SFTP
588- put "invalid URL: " & quote & pUrl & quote into laUrlErrorStatus[ pUrl ]
589- if laLoadReq[ pUrl ] then put "error " into laUrlLoadStatus[ pUrl ]
590- exit "ulGetFormat"
576+ if tUser is empty then
577+ put "anonymous" into tUser
578+ put "guest " into tPass
579+ end if
591580 end if
592581
593- break
582+ if tFilename is not empty then
583+ break
584+ end if
594585 default
595586 put "invalid URL: " & quote & pUrl & quote into laUrlErrorStatus[pUrl ]
596587 if laLoadReq[pUrl ] then put "error" into laUrlLoadStatus[pUrl ]
You can’t perform that action at this time.
0 commit comments