Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / GET FTP DIR$() - just can't get it to work

Author
Message
Tyrone M
18
Years of Service
User Offline
Joined: 25th Jan 2008
Location: Minnesota, USA
Posted: 26th Mar 2010 00:28
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?



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
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 29th Mar 2010 04:55
I haven't any access to a web server or I would have a play. I have used FTP without any major problems in the past. Not sure if I needed to change the FTP directory at the time though. Is it because you are trying to set two directories? Possibly DB can only work with one at a time? Can you try to set the FTP twice?

FTP SET DIR "public_ftp"
FTP SET DIR "incoming"

http://s6.bitefight.org/c.php?uid=103081

Login to post a reply

Server time is: 2026-07-26 21:13:01
Your offset time is: 2026-07-26 21:13:01