Howdy,
I've searched the forums for a resolution to this. There was one discussion that said if you're in the TLD, the GET FTP DIR$() returns "nothing". OK. That's working
But if I set the remote dir to something else, the SET works but a GET dir still returns "nothing".
Here's a test code snippet. If I follow that code with a LIST, GET FILE, or PUT FILE it all goes into the directory I set. But the GET FTP DIR$() always returns a blank The comment in the code indicates what's displayed on the screen. Help anyone?
ftp connect ftp$, user$, pass$
if get ftp failure()
print "Error Connecting: "; get ftp error$()
goto program_end
endif
current$ = GET FTP DIR$()
sleep 3000 ` threw in pauses just because!
print "<"; current$; ">"; get ftp status()
` output is <>1
FTP SET DIR "public_ftp/incoming"
sleep 3000
print get ftp status()
` output is 1, and it indeed sets the directory as programmed
current$ = GET FTP DIR$()
sleep 3000
print "<"; current$; ">"; get ftp status()
` output is <>1
user_pause()
If I remove the SET DIR command, it reverts back to the TLD (as it should). Ideas Anyone or is this a bug?
Thank you
- ty